jupyter-book / mystmd

Command line tools for working with MyST Markdown.
https://mystmd.org/guide
MIT License
215 stars 64 forks source link

Fix remaining commonmark tests #37

Open fwkoch opened 2 years ago

fwkoch commented 2 years ago

Current failing cmark json tests:

// Expected
44, // This is a block break, expect it to be different
// Minor
25, // This is a   I think
// To fix
333, // Spacing around inline code?
353, // Broken paragraph/emph?
506, // This is a link issue?
fwkoch commented 2 years ago

353: Interpretation of bullets vs. emphasis vs. plain text

Current:

  - title: Emphasis and strong emphasis - example 353
    mdast:
      type: root
      children:
        - type: list
          ordered: false
          spread: false
          children:
            - type: listItem
              spread: true
              children:
                - type: text
                  value: a *
    myst: |
      * a *
    html: |
      <p>* a *</p>

Expected:

  - title: Emphasis and strong emphasis - example 353
    mdast:
      type: root
      children:
        - type: paragraph
          children:
            - type: text
              value: '* a *'
    myst: |
      * a *
    html: |
      <p>* a *</p>
fwkoch commented 2 years ago

333: Losing whitespace

Current:

  - title: Code spans - example 333
    mdast:
      type: root
      children:
        - type: paragraph
          children:
            - type: inlineCode
              value: b
    myst: |
      ` b `
    html: |
      <p><code> b </code></p>

Expected:

  - title: Code spans - example 333
    mdast:
      type: root
      children:
        - type: paragraph
          children:
            - type: inlineCode
              value: ' b '
    myst: |
      ` b `
    html: |
      <p><code> b </code></p>