Replies: 1 comment 5 replies
-
Thanks for your kind feedback! The GFM spec is not explicit about when the spaces should be trimmed, just that they are:
But given that the two preceding sentences are discussing parsing, and that Github's implementation performs trimming during parsing, I do think it's probably most appropriate to keep
I can understand how your proposed change would allow you to do that. But I do think that converting Markdown into certain types of elements should be done during parsing, since that's the only time you're guaranteed to have the full information about the syntax that was used. I would be open to refactoring the |
Beta Was this translation helpful? Give feedback.
-
Hello,
I am currently using your libary and have written several extensions. The possibility to make changes via EventDispatcher is very good for me. However, I noticed something that prevents me from writing an extension for the event "DocumentParsedEvent". The fact that at this time the inline text was already processed via trim. There is no way for me to find out if the original text has "||" or "| |" written in a table.
For me it is more logical, if the parser does not trim the text yet and only the render takes over the trim.
This change would possibly mean breaking changes for extensions, but would offer more possibilities for the future. As a test I made this change and ran the test once. Only
151184 tests failed.In my case I want to extend the table and convert "||" to colspan and |^ to rowspan without rewriting the whole TableExtension.
Beta Was this translation helpful? Give feedback.
All reactions