Skip to content
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

Parsing bugs #7

Closed
michaelrsweet opened this issue Mar 1, 2019 · 3 comments

Comments

@michaelrsweet
Copy link
Owner

commented Mar 1, 2019

Looks like the markdown parser has some bugs:

  • Heading after a block quote is still part of the block quote
  • Lines containing a single | are incorrectly interpreted as a table.
  • Bulleted lists after preformatted text using indentation are lost.
@michaelrsweet michaelrsweet self-assigned this Mar 1, 2019
@michaelrsweet michaelrsweet added the bug label Mar 1, 2019
@michaelrsweet michaelrsweet added this to the Stable milestone Mar 1, 2019
@michaelrsweet

This comment has been minimized.

Copy link
Owner Author

commented Mar 1, 2019

Table bug seen with the following text:

where "-" is a pointer to the sibling node and "|" is a pointer to the first
child or parent node.

List bug seen with the following text:

The `mxmlGetType` function gets the type of a node:

    mxml_type_t
    mxmlGetType(mxml_node_t *node);

- `MXML_CUSTOM` : A custom value defined by your application,
- `MXML_ELEMENT` : An XML element, CDATA, comment, or processing instruction,
- `MXML_INTEGER` : A whitespace-delimited integer value,
@michaelrsweet

This comment has been minimized.

Copy link
Owner Author

commented Mar 2, 2019

Heading bug seem with the following text:

Table in block quote:

> Heading 1 | Heading 2 | Heading 3
> --------- | --------- | ---------
> Cell 1,1  | Cell 1,2  | Cell 1,3
> Cell 2,1  | Cell 2,2  | Cell 2,3
> Cell 3,1  | Cell 3,2  | Cell 3,3

# Heading
michaelrsweet added a commit that referenced this issue Mar 2, 2019
- Heading after a block quote is still part of the block quote
- Lines containing a single | are incorrectly interpreted as a table.
- Bulleted lists after preformatted text using indentation are lost.

The testmmd.md test file has been updated to exercise these fixes.
@michaelrsweet

This comment has been minimized.

Copy link
Owner Author

commented Mar 2, 2019

[master e3837f0] Fix some parsing bugs (Issue #7)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.