Open TheNorthMemory opened 3 months ago
while there is an additional css className, for eg: .my-class onto the custom containers, vitepress is crashed with sth like:
.my-class
11:19:56 PM [vitepress] Internal server error: Duplicate attribute.
The markdown content like below,
::: info {.my-class id=test} hello :::
Using the Token.attrJoin method is solved this problem, rendering as below:
Token.attrJoin
<div class="my-class info custom-block" id="test"> <p class="custom-block-title">INFO</p> <p>hello</p> </div>
[!TIP] The author of this PR can publish a preview release by commenting /publish below.
/publish
Description
while there is an additional css className, for eg:
.my-class
onto the custom containers, vitepress is crashed with sth like:The markdown content like below,
Using the
Token.attrJoin
method is solved this problem, rendering as below:Linked Issues
Additional Context