diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-02-14 11:52:33 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-02-14 11:52:33 +0100 |
commit | 959b272e65280933d4f3f6a7c1934b45f218a483 (patch) | |
tree | 557acb16495e0d442e3b044a1c01f2265cad9859 | |
parent | 684440e2d1bbd2546f8a935290d91c6e83ed41d8 (diff) | |
download | gitbook-959b272e65280933d4f3f6a7c1934b45f218a483.zip gitbook-959b272e65280933d4f3f6a7c1934b45f218a483.tar.gz gitbook-959b272e65280933d4f3f6a7c1934b45f218a483.tar.bz2 |
Fix #609: don't escape html in glossary
-rw-r--r-- | theme/templates/ebook/glossary.html | 12 | ||||
-rw-r--r-- | theme/templates/website/glossary.html | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/theme/templates/ebook/glossary.html b/theme/templates/ebook/glossary.html index 49e3c13..a9776ad 100644 --- a/theme/templates/ebook/glossary.html +++ b/theme/templates/ebook/glossary.html @@ -5,16 +5,16 @@ {% block content %} <div class="page page-toc"> <h1>Glossary</h1> - {% for item in glossary %} - <section class="normal glossary" id="{{ item.id }}"> - <h2><a href="#{{ item.id }}">{{ item.name }}</a></h2> - <p>{{ item.description }}</p> + {% for item in glossary %} + <section class="normal glossary" id="{{ item.id }}"> + <h2><a href="#{{ item.id }}">{{ item.name }}</a></h2> + <p>{{ item.description|safe }}</p> <ul class="glossary-index"> {% for file in item.files %} <li><a href="{{ basePath }}/{{ file.path|contentLink }}"><span class="level">{{ file.level }}.</span> {{ file.title }}</a></li> {% endfor %} </ul> - </section> - {% endfor %} + </section> + {% endfor %} </div> {% endblock %} diff --git a/theme/templates/website/glossary.html b/theme/templates/website/glossary.html index aab4f40..ff656cc 100644 --- a/theme/templates/website/glossary.html +++ b/theme/templates/website/glossary.html @@ -6,7 +6,7 @@ {% for item in glossary %} <section class="normal glossary" id="{{ item.id }}"> <h2><a href="#{{ item.id }}">{{ item.name }}</a></h2> - <p>{{ item.description }}</p> + <p>{{ item.description|safe }}</p> <ul class="glossary-index"> {% for file in item.files %} <li><a href="{{ basePath }}/{{ file.path|contentLink }}"><span class="level">{{ file.level }}.</span> {{ file.title }}</a></li> |