Skip to content

Unexpected behaviour of components when immediately prepended by GFMD #958

@ang-zeyu

Description

@ang-zeyu

Tell us about your environment

  • MarkBind Version: 2.70
  • also tested on the latest master, briefly

What did you do? Please include the actual source code causing the issue.

In general, any markdown + html with the following format causes the issue

markdown pre text **immediately** prepending a component, without an empty line after
<box or panel>
line 1 which behaves as per normal ( empty line still counts )
--empty line--
lines 3 onward are 'placed' outside of the component
...
...
</box or panel>

Only tested with box and panels, since that is likely the only places multiple paragraphs would be used.

Exceptions for the markdown pre text ( as far as I have found, exhaustively tested from this list https://markbind.org/userGuide/formattingContents.html ):

  • markdown headings ( # ... )
  • code blocks ( ... )
  • markdown tables
  • video embeds ( but the video disappears, leaving the link remaining instead )
  • lists / blockquotes without content ( e.g. > does not produce the issue but > some text does. )

Example 1 (boxes):

example1

Example 2 (panels):

example2

What did you expect to happen?

The multiple paragraphs should be chucked into the component itself, like so

Example 2: ( result achieved by leaving an empty line between the pre text and component )
expected2

What actually happened? Please include the actual, raw output.

The subsequent paragraphs after the first are appended after the component

Example 1:
result1

Example 2:
result2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions