flutter_tex
flutter_tex copied to clipboard
fromCSS not working for TeXViewDocument on Web
Question: Are you using the latest version of flutter_tex package?
Answer: Yes
Question: If you are looking for a feature, have you watched the Demo Video and gone through the examples folder? Answer: Yes
Code sample:
TeXView(
renderingEngine: const TeXViewRenderingEngine.mathjax(),
TeXViewDocument(
'''<img src="data:image/png;base64,$base64">''',
style: const TeXViewStyle.fromCSS(
'''
width: 100px;
''',
),
)
)
The CSS doesn't seem to do anything. I'm using a base64 image, so I can't use TeXViewImage (I think).
Note: CSS works when used inline (<img src="data:image/png;base64,$base64" style="width: 100px">
).