Closed HackingPheasant closed 4 years ago
That’s not the issue on your side. It’s just that the project isn’t finished yet and I haven’t finished figuring out all the rendering rules for every node tags.
I’ll add XML_PARSE_RECOVER option in the source code to see what would happen.
Would you mind sharing the parts of your document that causes the error? So that I could figuring out the rendering rules for it
Document was shared in original post, but it seems to break on lines like this Its hard to point to the exact lines as the line numbers referenced in the error message don't match to the line numbers in the document (and some of the error messages don't give enough context to manually locate it)
Document was shared in original post, but it seems to break on lines like this Its hard to point to the exact lines as the line numbers referenced in the error message don't match to the line numbers in the document (and some of the error messages don't give enough context to manually locate it)
Thanks for the feedback and the source. I’ll try to patch it soon
Document was shared in original post, but it seems to break on lines like this Its hard to point to the exact lines as the line numbers referenced in the error message don't match to the line numbers in the document (and some of the error messages don't give enough context to manually locate it)
The parsing issue should be fixed by the new patch. I run tests on the document you posted. And turns out its the empty elements, such as <br>
, that cause the issue.
However, there is another issue. For some reason libxml2 parser decided to eat all html tag/content if it is in <code>
block. But it seems that non-valid html tag such as <use>
won't be affected by this. I'm not an expert about libxml2. But I'll try to figure it out soon. By if you know anything about this part, more feedback would be awesome
I saw this tool from the reddit post. So I downloaded and gave it a go on my blogs markdown files, which didn't go so well.
How I installed
Gave it a test run on the readme from the repo and it seemed to work. I then next went to my blog post. This one specifically which follows GitHub Flavored Markdown Spec
Errors
Side note