Quotes Substitutions
The replacement of the formatting markup on inline elements is called the quotes substitution step.
Happy werewolves are *really* slobbery.
For instance, when a document containing the markup in Example 1 is converted to HTML, any asterisks enclosing text are replaced with <strong> HTML tags.
The resulting HTML can be seen in Example 2 below.
Happy werewolves are <strong>really</strong> slobbery.
Table 1 shows the HTML source code that is generated by the quotes substitution step.
| Name | AsciiDoc | HTML |
|---|---|---|
emphasis |
_word_ |
<em>word</em> |
strong |
*word* |
<strong>word</strong> |
monospace |
`word` |
<code>word</code> |
superscript |
^word^ |
<sup>word</sup> |
subscript |
~word~ |
<sub>word</sub> |
double curved quotes |
"`word`" |
“word” |
single curved quotes |
'`word`' |
‘word’ |
Default quotes substitution
Table 2 lists the specific blocks and inline elements the quotes substitution step applies to automatically.
| Blocks and elements | Substitution step applied by default |
|---|---|
Attribute entry values |
No |
Comments |
No |
Examples |
Yes |
Literal, listings, and source |
No |
Macros |
Yes |
Open |
Yes |
Paragraphs |
Yes |
Passthrough blocks |
No |
Quotes and verses |
Yes |
Sidebars |
Yes |
Tables |
Varies |
Titles |
Yes |
quotes substitution value
The quotes substitution step can be modified on blocks and inline elements.
For blocks, the step’s name, quotes, can be assigned to the subs attribute.
For inline elements, the built-in values q or quotes can be applied to inline text to add the quotes substitution step.