mirror of
https://github.com/rust-lang/mdBook.git
synced 2025-12-27 10:16:09 -05:00
Merge pull request #2845 from ehuss/script-in-block
Fix raw status ending in the HTML tokenizer
This commit is contained in:
@@ -614,6 +614,7 @@ where
|
||||
}
|
||||
}
|
||||
TagKind::EndTag => {
|
||||
is_raw = false;
|
||||
if self.is_html_tag_matching(&tag.name) {
|
||||
self.pop();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
<div>
|
||||
HTML block start
|
||||
<script>
|
||||
// script stuff <here>
|
||||
</script>
|
||||
< still in block
|
||||
</div>
|
||||
@@ -1,3 +1,4 @@
|
||||
# Summary
|
||||
|
||||
- [Comment in list](./comment-in-list.md)
|
||||
- [Script in block](./script-in-block.md)
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
<div>
|
||||
HTML block start
|
||||
<script>
|
||||
// script stuff <here>
|
||||
</script>
|
||||
< still in block
|
||||
</div>
|
||||
Reference in New Issue
Block a user