mirror of
https://github.com/rust-lang/mdBook.git
synced 2025-12-27 10:16:09 -05:00
Fix raw status ending in the HTML tokenizer
This fixes a small mistake where the "raw" status wasn't being reset once exiting the script or style tags. That means any text nodes that followed would be misinterpreted as being raw.
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();
|
||||
}
|
||||
|
||||
@@ -3,5 +3,5 @@
|
||||
<script>
|
||||
// script stuff <here>
|
||||
</script>
|
||||
< still in block
|
||||
< still in block
|
||||
</div>
|
||||
Reference in New Issue
Block a user