Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TeX not parsed #175

Open
Seamate opened this issue Jan 17, 2024 · 0 comments
Open

TeX not parsed #175

Seamate opened this issue Jan 17, 2024 · 0 comments

Comments

@Seamate
Copy link

Seamate commented Jan 17, 2024

TeX is not parsed when used with the Flutter Html package as a tag extension

Is there something I am not doing right?

                           Html(
                            style: {
                              
                               'p': Style(
                                fontSize: FontSize(20),
                                margin: Margins.symmetric(vertical: 10),
                              ),    
                                  'body': Style(fontSize: FontSize(20))
                            },
                            data: lessonContent,
                            extensions: [
                              TagExtension(
                                  tagsToExtend: {"tex"},
                                  builder: (extensionContext) {
                                    return SingleChildScrollView(
                                        child: Center(
                                            child: Container(
                                      padding: EdgeInsets.all(8),
                                      decoration: BoxDecoration(
                                          color: Color.fromARGB(
                                              255, 231, 231, 231),
                                          borderRadius:
                                              BorderRadius.circular(10)),
                                      
                                      child: TeXView(
                                        renderingEngine:
                                            TeXViewRenderingEngine.katex(),
                                        child: TeXViewDocument(
                                            extensionContext.innerHtml),
                                      ),
                                    )));
                                  }),
                            ],
                          )

Please help on how I can achieve this.

@Seamate Seamate changed the title Use Flutter Text with Flutter Html package Use Flutter TeX with Flutter Html package Jan 19, 2024
@Seamate Seamate changed the title Use Flutter TeX with Flutter Html package TeX not parsed Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant