-
-
Notifications
You must be signed in to change notification settings - Fork 326
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
C AST output seems totally broken #111
Comments
Turns out that when iterating over lines, |
+++ cfcommando [Sep 11 14 13:37 ]:
I don't know what happened here. I tried your input and got:
which looks fine. Are you perhaps using CR as line ending?
I know. @vmg is currently rewriting the C code for performance, |
Nope, not CR. I figured out that enumerating over lines as I did automatically stripped out the newlines, but |
Context: I'm writing a CommonMark -> NSAttributedString parser, so it can be rendered natively on iOS devices (and maybe OS X later).
Am I missing something obvious?
example1.txt:
Dumped AST:
example2.txt:
Dumped AST:
Parsing code, cribbed from main.c:
(returns attributedString)
(side note: bstring is going to be a huge waste of / terrible for memory/performance)
The text was updated successfully, but these errors were encountered: