Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 93439b5

Browse files
committed
[Bug 18042] Fix special character escaping in guide PDF
The HTML template for generating the User Guide PDF overrode the `marked.js` built-in functions for rendering code sections. This meant that `<` and `>` characters in MarkDown code blocks were appearing literally in the output HTML. Among other problems, this gave the User Guide PDF the very surprising title of `" theDataA[theIndex]["Title"] & "`, thanks to an example in the Data Grid guide!
1 parent f3b79df commit 93439b5

2 files changed

Lines changed: 1 addition & 10 deletions

File tree

builder/user-guide-template.html

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -753,16 +753,6 @@
753753
img_no_pg_break += '&nbsp;</div>';
754754
return img_no_pg_break;
755755
}
756-
757-
renderer.code = function (code, language, callback)
758-
{
759-
return '<pre><code>' + code + '</code></pre>';
760-
}
761-
762-
renderer.codespan = function (code)
763-
{
764-
return '<code class="inline">' + code + '</code>';
765-
}
766756

767757
var content_html = marked(prefix, { renderer: renderer });
768758

docs/notes/bugfix-18042.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Ensure guide PDF escapes special characters correctly.

0 commit comments

Comments
 (0)