Markdown filter: only one line is quoted after extract/merge of multi-line quotes
The attached file, quoted-list.md, has the three list items that are quoted by "> ". When this file is extracted and remerged (by tikal.sh -x and tikal.sh -m), the re-generated .md has the quote only in the first line, as shown below.
> 1. Drag the asset to the required location in the assembly and select once using the left mouse button.
1. If multiple insertion points have been defined on the model, press the Tab key to cycle through each of the insertion points until you identify the point you want. To automatically place and ground the asset at the layout origin (0, 0, 0), right-click when placing the asset and select **Insert Grounded at Origin**.
1. Continue to move the mouse to rotate the asset, or enter an angle in the value input box. Select again using the left mouse button to define the orientation.
Comments (6)
-
-
reporter Another issue #687 has been created to address the issue of additional/removal of spaces and empty lines reported by Sun Hang.
-
reporter The handling of quoted block is not straight forward because of how Flexmark arranges the node tree. Flexmark identify the neighboring lines starting with "> ", and collect them under one node of the type BlockQuote. Under the BlockQuote, there can be many other nodes such as OrderedList, which in turn has multiple OrderdlistItem nodes, each of which has a Paragraph node, which has a Text node. The output (adding lines to the Okapi Event object) happens at or near the leaf nodes.
Currently, the code handling the BlockQuote is outputting "> ", and that is why there is only one "> " per quoted block. We need to shift the responsibility to the leaf nodes. I am hoping the code that handles the leaf nodes can find out if it is under BlockQuote by traversing the parent pointers, and the output the original quote marker.
-
reporter - attached quoted-para.md
Attempted fix that worked for the quoted list didn't work for this simple quotation of multi-line single paragraph quote.
-
reporter - attached quoted-more.md
And here are quoting of more different types of markdowns.
-
reporter Commit ed7ace9 by pull request #245 partially fixes this.
- quoted-para.md : merged document is identical with the original
- quoted-list.md: merged document has one extra blank line at the end
- quoted-more.md: merge document has the second paragraph with HTML tag doubly quoted
This fix, however, introduced another issue #738.
- Log in to comment
The md file below, in re-generated md file, two spaces are missing after first * and additional new line and 3 spaces are added before ### Point cloud file paths
The md file below, in re-generated md file,one space is missing after 1. and additional new line and 3 spaces are added before ### Creating a Point Cloud