Open matt-garman opened 9 years ago
I think prepending the N
blank lines is the better solution here. Wok works with multiple sources of data, including Markdown and plain text, neither of which have metadata options built in. I would prefer to have a consistent metadata structure, and the header provides that.
When rendering a ReStructuredText document (not sure about other document types), if an error is encountered, the line numbers shown are incorrect. For example:
The actual error is on line 34 of my document. This appears to be due to the YAML metadata header in my document, which happens to be exactly 5 lines long. This is consistent across other documents with varying YAML metadata line counts. Clearly the YAML header is stripped off the RST document before being fed to docutils.
It's not too hard to mentally workaround this now that I know to keep it in mind.
I can think of two possible fixes for this: