You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've discovered a very strange bug here that I can't understand. Basically, with markymark, if there is any non-newline character after the closing parenthesis ) for the ImageRule (i.e. )C is an example), then the Markdown converter will omit the TextAttachment that would normally be inserted into the NSAttributedString
Any ideas what may be going on?
Stepping through with the debugger, it looks like markymark is still correctly identifying the markdown image with the regex and returning the correct [MarkDownItem] array—in this case, the relevant image item will be picked up as a nested item: the data structure looks like this after exiting the markyMark.parseMarkDown(text) method (printed from lldb):
I've looked into this briefly but couldn't find the problem, i'll try to spend some time later this week to investigate it more. Interesting bug, i'll keep you posted.
Hadn't had time to look into this issue before unfortunately. Just tried to reproduce your issue, but either i can't reproduce it or i failed to understand the issue.
I tried the following markdown in the markymark Example project:
Hey @jvanzummeren luckily this has been very low priority on my end so no worries about the delay. I'll try to get a branch isolating the problem in test or example before the weekend :-)
I've discovered a very strange bug here that I can't understand. Basically, with markymark, if there is any non-newline character after the closing parenthesis
)
for theImageRule
(i.e.)C
is an example), then the Markdown converter will omit theTextAttachment
that would normally be inserted into the NSAttributedStringAny ideas what may be going on?
Stepping through with the debugger, it looks like markymark is still correctly identifying the markdown image with the regex and returning the correct
[MarkDownItem]
array—in this case, the relevant image item will be picked up as a nested item: the data structure looks like this after exiting themarkyMark.parseMarkDown(text)
method (printed from lldb):The
ImageMarkDownItem
is nested as the first item of the firstParagraphMarkDownItem
in the array that is returned.I think the issue is with the
MarkDownConverter.convert(markdownItems)
instance method (in this case I'm converting toNSAttributedString
).Here is my code:
The text was updated successfully, but these errors were encountered: