I have the nested styling working with both **bold** and _italic_ styling applied.
But the parsing logic seems to have trouble finding correct opening and closing asterisks. If I have something like "this ***text is* bold and** italic.", then the third asterisk in the beginning will always be visible - it doesn't hide like it's supposed to... I assume this is because, it has trouble scanning for opening and closing asterisks, otherwise, I don't know what it could be.
But idk... maybe it's a simpler problem than I think. Will have to look into it tomorrow.
Also, doing something like "this _text is italic **but some of the_ text is also** bold" doesn't work yet.
There are quite a few edge cases to test and solve, and it's getting increasingly more complex.
I am building my own parsing logic, which really isn't ideal considering how complex this stuff is getting. Had this been a JavaScript project, I would have just used a package for the parsing, but I haven't found a really nice one for #Swift... #dev #Markdown
Having some trouble with nested styles in my native #Markdown editor app that I'm working on for #macOS.
In the example below _(see image)_, the parent element is bold styling and the nested child is italic.
The child element is correctly italic as it should be, but for some reason, the bold styling does not apply to the child element as well. #dev #Swift

View quoted note →
