docsify icon indicating copy to clipboard operation
docsify copied to clipboard

warning blockquotes do not render sub-elements correctly

Open shawaj opened this issue 4 years ago • 2 comments

Bug Report

Steps to reproduce

Attempt to add a warning tip using the !> tag, running over multiple lines with a nested list, for example:

!> * list item 1
!> * list item 2
!> * list item 3

What is current behaviour

The warning tag does not allow sub elements to be rendered correctly because it uses paragraph tags instead of div tags.

Currently, if you put !> tags over multiple lines, you get the following output: Screenshot 2021-06-06 at 00 27 09

Or if you add line breaks: Screenshot 2021-06-06 at 00 38 58

What is the expected behaviour

Ideally, this should work similar to the > blockquote tag where it still allows you to put lists and other elements nested below it: Screenshot 2021-06-06 at 00 33 57

This can be achieved by rendering it inside <div> tags instead of <p> tags as follows: Screenshot 2021-06-06 at 01 07 56

Other relevant information

N/A

Please create a reproducible sandbox

N/A

Mention the docsify version in which this bug was not present (if any)

N/A

shawaj avatar Jun 06 '21 00:06 shawaj

Good catch, thanks! A fix shouldn't be too hard.

trusktr avatar Jun 06 '21 00:06 trusktr

Any chance this will be fixed in the near future?

martinm82 avatar Sep 04 '23 12:09 martinm82