bem-contrib / md-to-bemjson

Converts markdown to bemjson
MIT License
7 stars 1 forks source link

Html inside fields should be parsed correctly #7

Open qfox opened 6 years ago

qfox commented 6 years ago

For now we have chunks:

<a href="#buttontype">`type`</a>

[
  { block: 'html', content: '<a href="#buttontype">' },
  { block: 'inline-code', content: 'type' },
  { block: 'html', content: '</a>' }
]

Expected:

[
  {
    tag: 'a',
    attrs: { href: '#buttontype' },
    content: [
      { block: 'inline-code', content: 'type' }
    ]
]