On 11/27/2017 11:56 PM, Lex Trotman wrote: > On 28 November 2017 at 05:11, H <[email protected]> wrote: >> On 11/26/2017 12:44 AM, Lex Trotman wrote: >>> On 26 November 2017 at 05:07, H <[email protected]> wrote: >>>> Are there any plans to broaden support for markdown syntax to include e.g. >>>> commonmark markdown? I have a particular interest in support for tables >>>> myself but expanded markdown support would be great. >>> I depends what you mean by "support", if you mean highlighting of >>> markup that needs to be provided by Scintilla (www.scintilla.org) >>> first so ask/provide a patch there first. >>> >>> If there is some change that to the structure that the parser needs to >>> support you can provide a patch/pull request on Geany (since the >>> markdown parser isn't part of Universal Ctags). There are no known >>> plans to change the existing parser, pull requests are welcome. >>> >>> If you want the markdown plugin to support it, you will need to >>> provide a patch/pull request to the markdown parser used by the >>> plugin. There is a parser included in the plugin but IIUC the plugin >>> defaults to libmarkdown if its available and I expect most distros use >>> that, so you would need to get changes in that project. Alternatively >>> you could change the embedded parser and force use of that when you >>> built the plugin for yourself. >>> >>> Cheers >>> Lex >>> >>>> _______________________________________________ >>>> Users mailing list >>>> [email protected] >>>> https://lists.geany.org/cgi-bin/mailman/listinfo/users >>> _______________________________________________ >>> Users mailing list >>> [email protected] >>> https://lists.geany.org/cgi-bin/mailman/listinfo/users >> Thank you for your exhaustive reply. I just checked out scintilla and the >> maintainer/developer calls it a lexer, not a parser. My understanding from >> reading this is that scintilla does the lexical analysis and then a parser >> does the actual interpretation. > Yes, its a lexer because it only detects syntactic tokens, which is > all the syntax highlighting needs. The parsers are separate things, > and have no connection to the Scintilla lexer. And the parser that > generates the "symbols" (actually the document outline) is different > to the parser that generates the preview in the markdown plugin which > must parse the whole language. > >> I am looking for the markdown previewer in geany to correctly interpret >> table information, or perhaps the entire commonmark definition. The geany >> markdown plugin does not do that whereas e.g. the gedit markdown preview >> does do it. > I don't know how compatible commonmark is to the daringfireball > version, but if its different I can see that some people will want one > and some people will want the other. Then again some people will want > the Github version of markdown and ... > >> So, is this both lexer and a parser issues? My - limited - understanding is >> both. Because the table definition information in a markdown document is not >> highlighted, thus presumably not recognized by the lexer, nor, of course, >> properly parsed in the preview, i.e. a parser issue. > Correct. > >> Is this correct? >> >> _______________________________________________ >> Users mailing list >> [email protected] >> https://lists.geany.org/cgi-bin/mailman/listinfo/users > _______________________________________________ > Users mailing list > [email protected] > https://lists.geany.org/cgi-bin/mailman/listinfo/users
I have filed a feature request for scintilla and for good measure one for the geany markdown plugin. _______________________________________________ Users mailing list [email protected] https://lists.geany.org/cgi-bin/mailman/listinfo/users
