Release remark-custom-container 1.2.0

Support multiple contents in the container directive

lib

Until v1.2.0, remark-custom-container only handle single-line element as a container child, since it relies on naive regular expression.
Now it supports multiple elements as children of container directives.

example

::: info sample title

Container children
Container children

<details>
  <summary>HTML tag works too</summary>
  <p>:tada:</p>
</details>

:::

will be rendered as follows:

sample title

Container children Container children

HTML tag works too

🎉

Commits

2022-11-27 00:25:35 update remark-custom-container to 1.2.0 897b048f +
commit 897b048fe31450b5d4f6545855125b76492f9066
Author: koka <koka.code@gmail.com>
Date:   Sun Nov 27 00:25:35 2022 +0900

    update remark-custom-container to 1.2.0
    
    fix

diff --git a/_posts/2022_11_23_custom-container.md b/_posts/2022_11_23_custom-container.md
new file mode 100644
index 00000000..bb407741
--- /dev/null
+++ b/_posts/2022_11_23_custom-container.md
@@ -0,0 +1,44 @@
+---
+title: Release remark-custom-container 1.2.0
+date: 2022-11-27
+categories:
+- dev
+tags:
+- lib
+description: Support multiple contents in the container directive
+---
+
+Until v1.2.0, [`remark-custom-container`][repo] only handle single-line element as a container child, since it relies on naive regular expression.  
+Now it supports multiple elements as children of container directives.
+
+### example
+
+```markdown
+::: info sample title
+
+Container children
+Container children
+
+<details>
+  <summary>HTML tag works too</summary>
+  <p>:tada:</p>
+</details>
+
+:::
+```
+
+will be rendered as follows:
+
+::: info sample title
+
+Container children
+Container children
+
+<details>
+  <summary>HTML tag works too</summary>
+  <p>🎉</p>
+</details>
+
+:::
+
+[repo]: https://github.com/koka831/remark-custom-container

Comments