syntax-tree / mdast-util-from-markdown

mdast utility to parse markdown
MIT License
212 stars 20 forks source link

important worlds #17

Closed hosseinmd closed 3 years ago

hosseinmd commented 3 years ago

Subject of the feature

MarkDown has important world like this

__very__ important!
_less_ important...
**very** important!

This library separating that to a text, but we can't know is this an important world or not

Problem

Library recognizing very and less in a text, but It is not clear that this is important.

Expected behavior

Specify that this is important

hosseinmd commented 3 years ago

Ast is

[
   {
      type: 'text',
      value: 'very',
      position: {
        start: { line: 1, column: 3, offset: 2 },
        end: { line: 1, column: 7, offset: 6 }
      }
    },
   {
      type: 'text',
      value: ' important!',
      position: {
        start: { line: 1, column: 9, offset: 8 },
        end: { line: 1, column: 20, offset: 19 }
      }
    }
]
hosseinmd commented 3 years ago

Excuse me this is my mistake.