front icon indicating copy to clipboard operation
front copied to clipboard

Incorrect splitting when body contains delimiter

Open rubenv opened this issue 5 years ago • 2 comments

When the body of a file contains a delimiter, incorrect parsing occurs.

I haven't yet found a good way to fix this (the use of SplitFunc makes it a bit difficult to reconstruct the original text and I have yet to figure out the best way to simply make it stop splitting), but for now here's a unit test to illustrate things.

rubenv avatar Nov 29 '18 09:11 rubenv

Am thinking we'll need to change *Matter.split(), so that it only splits twice (once before front matter, once after). But to do that we'll need to keep track of the number of splits that have happened.

Sadly I see no way to do so without putting state into *Matter, which would break thread-safety.

rubenv avatar Nov 29 '18 09:11 rubenv

I found this to be a problem with an asciidoc file with a ditaa diagram containing --- lines.

snipem avatar Apr 03 '20 21:04 snipem