{"route":"/en-US-v0.13.1/reference/model/emph/","title":"Emphasis","description":"Documentation for the `emph` function.","part":null,"outline":[{"id":"summary","name":"Summary","children":[]},{"id":"example","name":"Example","children":[]},{"id":"syntax","name":"Syntax","children":[]},{"id":"parameters","name":"Parameters","children":[{"id":"parameters-body","name":"body","children":[]}]}],"body":{"kind":"func","content":{"path":[],"name":"emph","title":"Emphasis","keywords":["italic"],"oneliner":"Emphasizes content by toggling italics.","element":true,"contextual":false,"deprecation":null,"details":"<p>Emphasizes content by toggling italics.</p>\n<ul>\n<li>If the current <a href=\"/en-US-v0.13.1/reference/text/text/#parameters-style\">text style</a> is <code><span class=\"typ-str\">&quot;normal&quot;</span></code>, this turns it\ninto <code><span class=\"typ-str\">&quot;italic&quot;</span></code>.</li>\n<li>If it is already <code><span class=\"typ-str\">&quot;italic&quot;</span></code> or <code><span class=\"typ-str\">&quot;oblique&quot;</span></code>, it turns it back to\n<code><span class=\"typ-str\">&quot;normal&quot;</span></code>.</li>\n</ul>\n<h2 id=\"example\">Example</h2>\n<div class=\"previewed-code\"><pre><code>This is <span class=\"typ-emph\">_emphasized._</span> <span class=\"typ-escape\">\\</span>\nThis is <span class=\"typ-func\">#</span><span class=\"typ-func\">emph</span><span class=\"typ-punct\">[</span>too.<span class=\"typ-punct\">]</span>\n\n<span class=\"typ-key\">#</span><span class=\"typ-key\">show</span> <span class=\"typ-func\">emph</span><span class=\"typ-punct\">:</span> it <span class=\"typ-op\">=&gt;</span> <span class=\"typ-punct\">{</span>\n  <span class=\"typ-func\">text</span><span class=\"typ-punct\">(</span>blue<span class=\"typ-punct\">,</span> it<span class=\"typ-punct\">.</span>body<span class=\"typ-punct\">)</span>\n<span class=\"typ-punct\">}</span>\n\nThis is <span class=\"typ-emph\">_emphasized_</span> differently.\n</code></pre><div class=\"preview\"><img src=\"/en-US-v0.13.1/assets/a777060a068976b92b49c3a2b5aed07e.png\" alt=\"Preview\"></div></div>\n<h2 id=\"syntax\">Syntax</h2>\n<p>This function also has dedicated syntax: To emphasize content, simply\nenclose it in underscores (<code>_</code>). Note that this only works at word\nboundaries. To emphasize part of a word, you have to use the function.</p>","example":null,"self":false,"params":[{"name":"body","details":"<p>The content to emphasize.</p>","example":null,"types":["content"],"strings":[],"default":null,"positional":true,"named":false,"required":true,"variadic":false,"settable":false}],"returns":["content"],"scope":[]}}}