Skip to content

Commit 579048e

Browse files
ISSOtmavivace
authored andcommitted
Fix pandocs renderer hack to match new "auto-print" script tags
1 parent 13cef5e commit 579048e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

renderer/src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ fn gen_single_page(path: &mut PathBuf, base_url: &Url) -> Result<()> {
299299
.take_while(|line| {
300300
line.as_ref().map_or(true, |line| {
301301
// HACK: this relies on the exact formatting of the auto-printer's script tag
302-
line.trim_start() != "<script type=\"text/javascript\">"
302+
line.trim_start() != "<script>"
303303
})
304304
})
305305
.try_for_each(|line| {

0 commit comments

Comments
 (0)