Skip to content

Commit cd16575

Browse files
Fix incorrect conversion of closing tags to blockquotes
1 parent ac77059 commit cd16575

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/render_shortcode_docs.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,10 @@ def shortcode_doc(fn):
4747
example = (
4848
code.replace("{{< ", "{{</* ")
4949
.replace(" >}}", " */>}}")
50+
.replace("\n>}}", "\n*/>}}")
5051
.replace("{{% ", "{{%/* ")
5152
.replace(" %}}", " */%}}")
53+
.replace("\n%}}", "\n*/%}}")
5254
)
5355

5456
# Process rendering options.

0 commit comments

Comments
 (0)