Showing
1 changed file
with
44 additions
and
2 deletions
@@ -65,7 +65,7 @@ At this moment this package supports: | @@ -65,7 +65,7 @@ At this moment this package supports: | ||
65 | 65 | ||
66 | Run this command: | 66 | Run this command: |
67 | ``` | 67 | ``` |
68 | -flutter pub add tex_markdown | 68 | +flutter pub add gpt_markdown |
69 | ``` | 69 | ``` |
70 | 70 | ||
71 | ## Usage | 71 | ## Usage |
@@ -74,7 +74,7 @@ Check the documentation [here.](https://github.com/saminsohag/flutter_packages/t | @@ -74,7 +74,7 @@ Check the documentation [here.](https://github.com/saminsohag/flutter_packages/t | ||
74 | 74 | ||
75 | ```dart | 75 | ```dart |
76 | import 'package:flutter/material.dart'; | 76 | import 'package:flutter/material.dart'; |
77 | -import 'package:tex_markdown/tex_markdown.dart'; | 77 | +import 'package:gpt_markdown/gpt_markdown.dart'; |
78 | 78 | ||
79 | return TexMarkdown( | 79 | return TexMarkdown( |
80 | ''' | 80 | ''' |
@@ -86,6 +86,48 @@ return TexMarkdown( | @@ -86,6 +86,48 @@ return TexMarkdown( | ||
86 | 86 | ||
87 | ``` | 87 | ``` |
88 | 88 | ||
89 | +## Here I am providing some sample response of ChatGPT and it's Response: | ||
90 | + | ||
91 | + | ||
92 | +```markdown | ||
93 | +## ChatGPT Response | ||
94 | + | ||
95 | +Welcome to ChatGPT! Below is an example of a response with Markdown and LaTeX code: | ||
96 | + | ||
97 | +### Markdown Example | ||
98 | + | ||
99 | +You can use Markdown to format text easily. Here are some examples: | ||
100 | + | ||
101 | +- **Bold Text**: **This text is bold** | ||
102 | +- *Italic Text*: *This text is italicized* | ||
103 | +- [Link](https://www.example.com): [This is a link](https://www.example.com) | ||
104 | +- Lists: | ||
105 | + 1. Item 1 | ||
106 | + 2. Item 2 | ||
107 | + 3. Item 3 | ||
108 | + | ||
109 | +### LaTeX Example | ||
110 | + | ||
111 | +You can also use LaTeX for mathematical expressions. Here's an example: | ||
112 | + | ||
113 | +- **Equation**: \( f(x) = x^2 + 2x + 1 \) | ||
114 | +- **Integral**: \( \int_{0}^{1} x^2 \, dx \) | ||
115 | +- **Matrix**: | ||
116 | + | ||
117 | +\[ | ||
118 | +\begin{bmatrix} | ||
119 | +1 & 2 & 3 \\ | ||
120 | +4 & 5 & 6 \\ | ||
121 | +7 & 8 & 9 | ||
122 | +\end{bmatrix} | ||
123 | +\] | ||
124 | + | ||
125 | +### Conclusion | ||
126 | + | ||
127 | +Markdown and LaTeX can be powerful tools for formatting text and mathematical expressions in your Flutter app. If you have any questions or need further assistance, feel free to ask! | ||
128 | +``` | ||
129 | + | ||
130 | + | ||
89 | ## Additional information | 131 | ## Additional information |
90 | 132 | ||
91 | You can find the source code [here.](https://github.com/saminsohag/flutter_packages/tree/main/gpt_markdown) | 133 | You can find the source code [here.](https://github.com/saminsohag/flutter_packages/tree/main/gpt_markdown) |
-
Please register or login to post a comment