Content-Length: 346559 | pFad | http://github.com/jsdoc/jsdoc.github.io/commit/fe33d77f877491feb2686b082ab6e1b808a3a7da

EA document new Markdown plugin options (#111, #117) · jsdoc/jsdoc.github.io@fe33d77 · GitHub
Skip to content

Commit fe33d77

Browse files
committed
document new Markdown plugin options (#111, #117)
1 parent a89927a commit fe33d77

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

content/en/plugins-markdown.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,18 @@ For example, to exclude the `author` tag from Markdown processing:
103103
}
104104
```
105105
{% endexample %}
106+
107+
108+
## Hard-wrapping text at line breaks
109+
110+
By default, the Markdown plugin does not hard-wrap text at line breaks. This is because it's normal
111+
for a JSDoc comment to be wrapped across multiple lines. If you prefer to hard-wrap text at line
112+
breaks, set your JSDoc configuration file's `markdown.hardwrap` property to `true`. This property is
113+
available in JSDoc 3.4.0 and later.
114+
115+
116+
## Adding ID attributes to headings
117+
118+
By default, the Markdown plugin does not add an `id` attribute to each HTML heading. To
119+
automatically add `id` attributes based on the heading's text, set your JSDoc configuration file's
120+
`markdown.idInHeadings` property to `true`. This property is available in JSDoc 3.4.0 and later.

plugins-markdown.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ <h2>Table of Contents</h2>
3636
<li>
3737
<a href="#excluding-the-default-tags-from-markdown-processing">Excluding the default tags from Markdown processing</a>
3838
</li>
39+
<li>
40+
<a href="#hard-wrapping-text-at-line-breaks">Hard-wrapping text at line breaks</a>
41+
</li>
42+
<li>
43+
<a href="#adding-id-attributes-to-headings">Adding ID attributes to headings</a>
44+
</li>
3945
</ul>
4046
<h2 id="overview">Overview</h2>
4147
<p>JSDoc includes a Markdown plugin that automatically converts Markdown-formatted text to HTML. You can use this plugin with any JSDoc template. In JSDoc 3.2.2
@@ -104,6 +110,14 @@ <h2 id="excluding-the-default-tags-from-markdown-processing">Excluding the defau
104110
}
105111
</code></pre>
106112
</figure>
113+
<h2 id="hard-wrapping-text-at-line-breaks">Hard-wrapping text at line breaks</h2>
114+
<p>By default, the Markdown plugin does not hard-wrap text at line breaks. This is because it&#39;s normal for a JSDoc comment to be wrapped across multiple lines.
115+
If you prefer to hard-wrap text at line breaks, set your JSDoc configuration file&#39;s <code>markdown.hardwrap</code> property to <code>true</code>. This
116+
property is available in JSDoc 3.4.0 and later.</p>
117+
<h2 id="adding-id-attributes-to-headings">Adding ID attributes to headings</h2>
118+
<p>By default, the Markdown plugin does not add an <code>id</code> attribute to each HTML heading. To automatically add <code>id</code> attributes based on the
119+
heading&#39;s text, set your JSDoc configuration file&#39;s
120+
<code>markdown.idInHeadings</code> property to <code>true</code>. This property is available in JSDoc 3.4.0 and later.</p>
107121
</article>
108122
<footer>
109123
<a class="license-badge" href="http://creativecommons.org/licenses/by-sa/3.0/">

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/jsdoc/jsdoc.github.io/commit/fe33d77f877491feb2686b082ab6e1b808a3a7da

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy