bem-contrib/md-to-bemjson

Html inside fields should be parsed correctly

qfox opened this issue · 0 comments

qfox commented

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' }
    ]
]