unjs / undocs

Minimal Documentation theme and CLI for shared usage across UnJS projects.
https://undocs.pages.dev/
MIT License
143 stars 12 forks source link

steps doesn't parse correctly with links. #106

Open cpreston321 opened 3 months ago

cpreston321 commented 3 months ago

Environment

any

Reproduction

https://nitro.unjs.io/deploy/providers/alwaysdata

Describe the bug

So it seems when you have a list with content the a tag gets put into a new line. I don't have a good fix for this since sometimes the link will exist in the step or below but we really have no idea where to put it.

Example output:

children {
  type: 'element',
  tag: 'li',
  props: {},
  children: [
    { type: 'text', value: 'Install Package ' },
    { type: 'element', tag: 'a', props: [Object], children: [Array] },
    { type: 'element', tag: 'note', props: {}, children: [Array] },
    {
      type: 'element',
      tag: 'pm-install',
      props: [Object],
      children: []
    }
  ]
}

Mardown Sample:

CleanShot 2024-03-16 at 17 10 13@2x

Additional context

No response

Logs

No response