-
Notifications
You must be signed in to change notification settings - Fork 31
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
The parser does not parse the full ISTQB example document #345
Comments
Here is a minimal working example document Here is the first paragraph.
Here is the second paragraph.
Here is the third paragraph. Here is the result of running \markdownRendererDocumentBegin
Here is the first paragraph.\markdownRendererParagraphSeparator
{}\markdownRendererDocumentEnd The expected behavior is that three paragraphs are recognized. Removing the trailing space produces the correct output: \markdownRendererDocumentBegin
Here is the first paragraph.\markdownRendererParagraphSeparator
{}Here is the second paragraph.\markdownRendererParagraphSeparator
{}Here is the third paragraph.\markdownRendererDocumentEnd This issue seems to target the blind spot of our unit tests: When writing inline markdown, no TeX engine other than ConTeXt can recognize trailing spaces. Since the unit tests expect the same results for inline markdown and when inputting markdown documents using the As the next step, we should try to reproduce the error using a commit before merging #306 to see if the error has been introduced by #306. |
Regardless, we may want to add support for YAML blocks at the top of testfiles that would allow us to specify whether a testfile should be processed for a given format or template. For example: if: format == 'context-mkiv' or template == 'verbatim' # processed by python's eval() built-in
---
<<<
This is a line of text.␣␣
This is another line of text.
>>>
documentBegin
hardLineBreak
documentEnd This would allow us to test the behavior of trailing spaces even though they cannot be processed by some formats and templates. This should not be necessary for this issue, where the trailing spaces at the end of a paragraph should always produce the same output regardless of whether the format/template allows TeX to see the trailing spaces. However, it would be useful for testing hard line breaks. |
I failed to reproduce the error using the Docker image Here is the first paragraph.\markdownRendererInterblockSeparator
{}Here is the second paragraph.\markdownRendererInterblockSeparator
{}Here is the third paragraph.\markdownRendererDocumentEnd This indicates that the error has been introduced by #306. |
Consider the document
example-istqb-content.md
. The document contains a number of sections, but only the first paragraph of the document is recognized by the parser of Markdown 3.0.0:This issue is likely linked to the addition of TeX-like rich paragraphs in #306. Closing this issue will allow us to continue work on https://github.com/danopolan/istqb_latex/pull/77.
The text was updated successfully, but these errors were encountered: