@@ -65,7 +65,7 @@ At this moment this package supports:
Run this command:
```
flutter pub add tex_markdown
flutter pub add gpt_markdown
```
## Usage
...
...
@@ -74,7 +74,7 @@ Check the documentation [here.](https://github.com/saminsohag/flutter_packages/t
```dart
import'package:flutter/material.dart';
import'package:tex_markdown/tex_markdown.dart';
import'package:gpt_markdown/gpt_markdown.dart';
returnTexMarkdown(
'''
...
...
@@ -86,6 +86,48 @@ return TexMarkdown(
```
## Here I am providing some sample response of ChatGPT and it's Response:
```markdown
## ChatGPT Response
Welcome to ChatGPT! Below is an example of a response with Markdown and LaTeX code:
### Markdown Example
You can use Markdown to format text easily. Here are some examples:
-**Bold Text**: **This text is bold**
-*Italic Text*: *This text is italicized*
-[Link](https://www.example.com): [This is a link](https://www.example.com)
- Lists:
1. Item 1
2. Item 2
3. Item 3
### LaTeX Example
You can also use LaTeX for mathematical expressions. Here's an example:
-**Equation**: \( f(x) = x^2 + 2x + 1 \)
-**Integral**: \(\int_{0}^{1} x^2 \, dx \)
-**Matrix**:
\[
\begin{bmatrix}
1 & 2 & 3 \\
4 & 5 & 6 \\
7 & 8 & 9
\end{bmatrix}
\]
### Conclusion
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!
```
## Additional information
You can find the source code [here.](https://github.com/saminsohag/flutter_packages/tree/main/gpt_markdown)