angular-cn/aio/tools/transforms/templates/content.template.html
Peter Bacon Darwin 648de7dd86 build(aio): render titles correctly in content pages
If a document provided a title jsdoc tag then its h1
element was being rendered incorrectly as a markdown
paragraph.

This change renders the title as a markdown h1 tag
directly.

Fixes #16099
2017-04-19 10:42:38 +01:00

4 lines
129 B
HTML

{% if doc.title %}{$ ('# ' + doc.title.trim()) | marked $}{% endif %}
<div class="content">
{$ doc.description | marked $}
</div>