SimonFairbairn / SwiftyMarkdown

Converts Markdown files and strings into NSAttributedStrings with lots of customisation options.
MIT License
1.64k stars 275 forks source link

Parser freezed with custom rule #123

Open Vorobyovulx opened 3 years ago

Vorobyovulx commented 3 years ago

Parser freezed with custom rule and input text "$ $$ some text $ $$":

CharacterRule(
                primaryTag: CharacterRuleTag(
                    tag: "$",
                    type: .repeating
                ),
                otherTags: [],
                styles: [
                    2 : CharacterStyle.code,
                    3 : CharacterStyle.italic
                ],
                minTags: 2,
                maxTags: 3
            )