diff options
author | Steve Wolter <swolter@google.com> | 2014-12-01 12:34:46 +0100 |
---|---|---|
committer | Steve Wolter <swolter@google.com> | 2014-12-01 12:35:14 +0100 |
commit | 737304d2aa24a7a225aaf14b2e23065be8adc449 (patch) | |
tree | 11112f6c945adb0dbaff491f55de927e27b76545 /test/MarkdownTest_1.0.3/Tests/Formatting in Table of Contents.html | |
parent | 3afc3ec505dd7dd902086f8c158290962e705663 (diff) | |
download | rust-hoedown-737304d2aa24a7a225aaf14b2e23065be8adc449.tar.gz |
Fix issue #125: Don't escape HTML tags in tables of contents.
Before this patch, a header like "# *A*" was displayed as
"<li><em>A</em></li>" in the TOC. The error was caused by
toc_header doing the HTML escaping. In the normal HTML renderer, the escaping
is done by the normal_text hook. This patch uses the same handling to
fix the issue.
Diffstat (limited to 'test/MarkdownTest_1.0.3/Tests/Formatting in Table of Contents.html')
-rw-r--r-- | test/MarkdownTest_1.0.3/Tests/Formatting in Table of Contents.html | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/MarkdownTest_1.0.3/Tests/Formatting in Table of Contents.html b/test/MarkdownTest_1.0.3/Tests/Formatting in Table of Contents.html new file mode 100644 index 0000000..8e7be95 --- /dev/null +++ b/test/MarkdownTest_1.0.3/Tests/Formatting in Table of Contents.html @@ -0,0 +1,15 @@ +<ul> +<li> +<a href="#toc_0">Header with special & characters</a> +<ul> +<li> +<a href="#toc_1">With <code>Code</code></a> +<ul> +<li> +<a href="#toc_2">With <em>Emphasis</em></a> +</li> +</ul> +</li> +</ul> +</li> +</ul> |