Skip to content

Commit 24b9d38

Browse files
committed
Add textarea to list of literal HTML block tags.
Like script, style, and pre, textarea blocks can contain blank lines without the contents being interpret as commonmark. Closes #657.
1 parent 92697d5 commit 24b9d38

File tree

1 file changed

+23
-3
lines changed

1 file changed

+23
-3
lines changed

spec.txt

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2367,10 +2367,10 @@ the first line meets both the [start condition] and the [end
23672367
condition], the block will contain just that line.
23682368

23692369
1. **Start condition:** line begins with the string `<script`,
2370-
`<pre`, or `<style` (case-insensitive), followed by a space, a tab,
2371-
the string `>`, or the end of the line.\
2370+
`<pre`, `<textarea`, or `<style` (case-insensitive), followed by a space,
2371+
a tab, the string `>`, or the end of the line.\
23722372
**End condition:** line contains an end tag
2373-
`</script>`, `</pre>`, or `</style>` (case-insensitive; it
2373+
`</script>`, `</pre>`, `</textarea>`, or `</style>` (case-insensitive; it
23742374
need not match the start tag).
23752375

23762376
2. **Start condition:** line begins with the string `<!--`.\
@@ -2760,6 +2760,26 @@ document.getElementById("demo").innerHTML = "Hello JavaScript!";
27602760
````````````````````````````````
27612761

27622762

2763+
A textarea tag (type 1):
2764+
2765+
```````````````````````````````` example
2766+
<textarea>
2767+
2768+
*foo*
2769+
2770+
_bar_
2771+
2772+
</textarea>
2773+
.
2774+
<textarea>
2775+
2776+
*foo*
2777+
2778+
_bar_
2779+
2780+
</textarea>
2781+
````````````````````````````````
2782+
27632783
A style tag (type 1):
27642784

27652785
```````````````````````````````` example

0 commit comments

Comments
 (0)