Skip to content

Commit c9dc63a

Browse files
committed
FIX: allowing H6 tag in BBCode decoder
1 parent 1dca01b commit c9dc63a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/mezz/codec-bbcode.r

+4-4
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ encode-value: func[value [any-string!] /local out tmp][
8888
out: copy ""
8989
parse/all value [
9090
any [
91-
pos: ;(probe pos)
91+
;pos: ;(probe pos)
9292
[
93-
#"'" (append out "'") |
93+
#"'" (append out "'") |
9494
#"^"" (append out """)
9595
]
9696
|
@@ -187,7 +187,7 @@ emit-tag: func[tag][
187187
]
188188

189189
enabled-tags: [
190-
"b" "i" "s" "u" "del" "h1" "h2" "h3" "h4" "h5" "span" "class"
190+
"b" "i" "s" "u" "del" "h1" "h2" "h3" "h4" "h5" "h6" "span" "class"
191191
"ins" "dd" "dt" "ol" "ul" "li" "url" "list" "br" "hr"
192192
"color" "quote" "img" "size" "rebol" "align" "email" "ignore"
193193
]
@@ -350,7 +350,7 @@ bbcode: func [
350350
tmp
351351
]
352352
][
353-
if find ["h1" "h2" "h3" "h4" "h5" "ul" "ol"] tag [
353+
if find ["h1" "h2" "h3" "h4" "h5" "h6" "ul" "ol"] tag [
354354
close-p-if-possible
355355
]
356356
append opened-tags tag

0 commit comments

Comments
 (0)