flutter_tex icon indicating copy to clipboard operation
flutter_tex copied to clipboard

fromCSS not working for TeXViewDocument on Web

Open SSebigo opened this issue 2 years ago • 0 comments

Question: Are you using the latest version of flutter_tex package? pub 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">).

SSebigo avatar Jun 29 '22 15:06 SSebigo