Closed luohao123 closed 6 months ago
Hi @luohao123 , you need use SelectionArea
to enable selecting
thank u! every helpful!! I used SelectionArea it worked. But one moer quesiton.
SelectionArea( child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: MarkdownGenerator( linesMargin: EdgeInsets.zero, generators: [videoGeneratorWithTag, latexGenerator], config: isDark ? MarkdownConfig.darkConfig.copy( configs: _getMarkdownConfigs( isDark, bodyTextStyle, codeWrapper, ), ) : MarkdownConfig.defaultConfig.copy( configs: _getMarkdownConfigs( isDark, bodyTextStyle, codeWrapper, ), ), ).buildWidgets(message.text), ), ),
I using liek this, make the genreator like in your example folder, add latex and video support.
But
latex not showing, is the format not right? The inline latex should showing
Hi @luohao123 , please provider the source data to locate the issue
hello, the text is above text
@luohao123 you should also pass the inlineSyntaxList: [LatexSyntax()]
@asjqkkkk hi, MarkdownGenerator( linesMargin: EdgeInsets.zero, generators: [videoGeneratorWithTag, latexGenerator], inlineSyntaxList: [LatexSyntax()],
there is no such params in Generator
@luohao123 please have a look with https://github.com/asjqkkkk/markdown_widget/blob/master/example/lib/markdown_custom/latex.dart
you need to fetch the example code, then you'll konw how to use it
Hi, I have a markdow widget using geneator likethis:
Column( crossAxisAlignment: CrossAxisAlignment.start, children: MarkdownGenerator( linesMargin: EdgeInsets.zero, // generators: [videoGeneratorWithTag, latexGenerator],, config: isDark ? MarkdownConfig.darkConfig.copy( configs: _getMarkdownConfigs( isDark, bodyTextStyle, codeWrapper, ), ) : MarkdownConfig.defaultConfig.copy( configs: _getMarkdownConfigs( isDark, bodyTextStyle, codeWrapper, ), ), ).buildWidgets(message.text), ),
but the copy mode not ready default.