Skip to content

Commit 51d7998

Browse files
authored
Merge pull request #2845 from ehuss/script-in-block
Fix raw status ending in the HTML tokenizer
2 parents 1c034bd + d27a2bd commit 51d7998

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

crates/mdbook-html/src/html/tree.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -614,6 +614,7 @@ where
614614
}
615615
}
616616
TagKind::EndTag => {
617+
is_raw = false;
617618
if self.is_html_tag_matching(&tag.name) {
618619
self.pop();
619620
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<div>
2+
HTML block start
3+
<script>
4+
// script stuff <here>
5+
</script>
6+
&lt; still in block
7+
</div>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# Summary
22

33
- [Comment in list](./comment-in-list.md)
4+
- [Script in block](./script-in-block.md)
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<div>
2+
HTML block start
3+
<script>
4+
// script stuff <here>
5+
</script>
6+
&lt; still in block
7+
</div>

0 commit comments

Comments
 (0)