Move-Agency / MarkyMark-Android

Markdown parser for Android
MIT License
29 stars 6 forks source link

Optimize block parsing logic #37

Closed patrickhoette closed 2 years ago

patrickhoette commented 4 years ago

As per the TODO in BlockParser:

Optimize to only iterate over rules once. Possible by using a similar structure as the formatting logic. The block rules would parse all instances of themselves in the text and return these. You need to mark what their place was in the document. Then after each rule has been parsed you remove the section from the lines. The same offset handling as in the formatting should be used.

patrickhoette commented 2 years ago

No longer relevant. Parsing handled by FlexMark in new rewrite