Skip to content

v1.1.0

Compare
Choose a tag to compare
@talatkuyuk talatkuyuk released this 10 Feb 21:41
· 18 commits to main since this release

Release notes and the changes made by @talatkuyuk

removed inconsistencies in the outputs whether there is an empty line or not

::: info
:::

and

::: info

:::

Now, both produces the output without <p> inside the container,

<div class="remark-container info"></div>

Fixed a bug

if a break node is the first child of a paragraph within the container, the break node is removed.

Fixed a bug for the block-level html elements in markdown files (not related with mdx files)

Block-level html elements was causing a bug if the ::: closing container sign is just after the that element closing tag.

::: info Title
<p>Hi</p>
:::

For the fix, I added another visit function for the html nodes in the AST that if a html node.value ends with "\n:::", remove and carry it into a new paragraph.

Now, we don't need to put an empty line after the block-level html elements like <p> tag in the container, before it was needed an empty line to work with "markdown" documents.