<!-- Generated by pkgdown: do not edit by hand -->
<!DOCTYPE html>
<html lang="en">
  <head>
  <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Theme element that enables markdown text. — element_markdown • ggtext</title>


<!-- jquery -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>
<!-- Bootstrap -->

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous" />

<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script>

<!-- bootstrap-toc -->
<link rel="stylesheet" href="../bootstrap-toc.css">
<script src="../bootstrap-toc.js"></script>

<!-- Font Awesome icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous" />

<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script>

<!-- headroom.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script>

<!-- pkgdown -->
<link href="../pkgdown.css" rel="stylesheet">
<script src="../pkgdown.js"></script>




<meta property="og:title" content="Theme element that enables markdown text. — element_markdown" />
<meta property="og:description" content="Theme element that enables markdown text." />




<!-- mathjax -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script>

<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->



  </head>

  <body data-spy="scroll" data-target="#toc">
    <div class="container template-reference-topic">
      <header>
      <div class="navbar navbar-default navbar-fixed-top" role="navigation">
  <div class="container">
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <span class="navbar-brand">
        <a class="navbar-link" href="../index.html">ggtext</a>
        <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Released version">0.1.1</span>
      </span>
    </div>

    <div id="navbar" class="navbar-collapse collapse">
      <ul class="nav navbar-nav">
        <li>
  <a href="../index.html">
    <span class="fas fa fas fa-home fa-lg"></span>
     
  </a>
</li>
<li>
  <a href="../reference/index.html">Reference</a>
</li>
<li class="dropdown">
  <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
    Articles
     
    <span class="caret"></span>
  </a>
  <ul class="dropdown-menu" role="menu">
    <li>
      <a href="../articles/plotting_text.html">Plotting with markdown text</a>
    </li>
    <li>
      <a href="../articles/theme_elements.html">Markdown theme elements</a>
    </li>
  </ul>
</li>
<li>
  <a href="../news/index.html">Changelog</a>
</li>
      </ul>
      <ul class="nav navbar-nav navbar-right">
        <li>
  <a href="https://github.com/wilkelab/ggtext/">
    <span class="fab fa fab fa-github fa-lg"></span>
     
  </a>
</li>
      </ul>
      
    </div><!--/.nav-collapse -->
  </div><!--/.container -->
</div><!--/.navbar -->

      

      </header>

<div class="row">
  <div class="col-md-9 contents">
    <div class="page-header">
    <h1>Theme element that enables markdown text.</h1>
    <small class="dont-index">Source: <a href='https://github.com/wilkelab/ggtext/blob/master/R/element-markdown.R'><code>R/element-markdown.R</code></a></small>
    <div class="hidden name"><code>element_markdown.Rd</code></div>
    </div>

    <div class="ref-description">
    <p>Theme element that enables markdown text.</p>
    </div>

    <pre class="usage"><span class='fu'>element_markdown</span>(
  family = <span class='kw'>NULL</span>,
  face = <span class='kw'>NULL</span>,
  size = <span class='kw'>NULL</span>,
  colour = <span class='kw'>NULL</span>,
  fill = <span class='kw'>NULL</span>,
  box.colour = <span class='kw'>NULL</span>,
  linetype = <span class='kw'>NULL</span>,
  linewidth = <span class='kw'>NULL</span>,
  hjust = <span class='kw'>NULL</span>,
  vjust = <span class='kw'>NULL</span>,
  halign = <span class='kw'>NULL</span>,
  valign = <span class='kw'>NULL</span>,
  angle = <span class='kw'>NULL</span>,
  lineheight = <span class='kw'>NULL</span>,
  margin = <span class='kw'>NULL</span>,
  padding = <span class='kw'>NULL</span>,
  r = <span class='kw'>NULL</span>,
  color = <span class='kw'>NULL</span>,
  box.color = <span class='kw'>NULL</span>,
  align_widths = <span class='kw'>NULL</span>,
  align_heights = <span class='kw'>NULL</span>,
  rotate_margins = <span class='kw'>NULL</span>,
  debug = <span class='fl'>FALSE</span>,
  inherit.blank = <span class='fl'>FALSE</span>
)</pre>

    <h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>Arguments</h2>
    <table class="ref-arguments">
    <colgroup><col class="name" /><col class="desc" /></colgroup>
    <tr>
      <th>family</th>
      <td><p>Font family</p></td>
    </tr>
    <tr>
      <th>face</th>
      <td><p>Font face</p></td>
    </tr>
    <tr>
      <th>size</th>
      <td><p>Font size</p></td>
    </tr>
    <tr>
      <th>colour, color</th>
      <td><p>Text color</p></td>
    </tr>
    <tr>
      <th>fill</th>
      <td><p>Fill color of the enclosing box</p></td>
    </tr>
    <tr>
      <th>box.colour, box.color</th>
      <td><p>Line color of the enclosing box (if different from the text color)</p></td>
    </tr>
    <tr>
      <th>linetype</th>
      <td><p>Line type of the enclosing box (like <code>lty</code> in base R)</p></td>
    </tr>
    <tr>
      <th>linewidth</th>
      <td><p>Line width of the enclosing box (measured in mm, just like <code>size</code> in
<code><a href='https://ggplot2.tidyverse.org/reference/element.html'>ggplot2::element_line()</a></code>).</p></td>
    </tr>
    <tr>
      <th>hjust</th>
      <td><p>Horizontal justification</p></td>
    </tr>
    <tr>
      <th>vjust</th>
      <td><p>Vertical justification</p></td>
    </tr>
    <tr>
      <th>halign</th>
      <td><p>Horizontal justification</p></td>
    </tr>
    <tr>
      <th>valign</th>
      <td><p>Vertical justification</p></td>
    </tr>
    <tr>
      <th>angle</th>
      <td><p>Angle (in degrees)</p></td>
    </tr>
    <tr>
      <th>lineheight</th>
      <td><p>Line height</p></td>
    </tr>
    <tr>
      <th>padding, margin</th>
      <td><p>Padding and margins around the text box.
See <code><a href='https://rdrr.io/pkg/gridtext/man/richtext_grob.html'>gridtext::richtext_grob()</a></code> for details.</p></td>
    </tr>
    <tr>
      <th>r</th>
      <td><p>Unit value specifying the corner radius of the box</p></td>
    </tr>
    <tr>
      <th>align_widths, align_heights</th>
      <td><p>Should multiple elements be aligned by their
widths or height? See <code><a href='https://rdrr.io/pkg/gridtext/man/richtext_grob.html'>gridtext::richtext_grob()</a></code> for details.</p></td>
    </tr>
    <tr>
      <th>rotate_margins</th>
      <td><p>Should margins get rotated in frame with rotated text?
If <code>TRUE</code>, the margins are applied relative to the text direction. If <code>FALSE</code>,
the margins are applied relative to the plot direction, i.e., the top margin,
for example, is always placed above the text label, regardless of the direction
in which the text runs. The default is <code>FALSE</code>, which mimics the behavior of
<code>element_text()</code>.</p></td>
    </tr>
    <tr>
      <th>debug</th>
      <td><p>Draw a debugging box around each label</p></td>
    </tr>
    <tr>
      <th>inherit.blank</th>
      <td><p>See <code><a href='https://ggplot2.tidyverse.org/reference/element.html'>ggplot2::margin()</a></code> for details.</p></td>
    </tr>
    </table>

    <h2 class="hasAnchor" id="value"><a class="anchor" href="#value"></a>Value</h2>

    <p>A ggplot2 theme element that can be used inside a <code><a href='https://ggplot2.tidyverse.org/reference/theme.html'>ggplot2::theme()</a></code>
call.</p>
    <h2 class="hasAnchor" id="see-also"><a class="anchor" href="#see-also"></a>See also</h2>

    <div class='dont-index'><p><code><a href='https://rdrr.io/pkg/gridtext/man/richtext_grob.html'>gridtext::richtext_grob()</a></code>, <code><a href='element_textbox.html'>element_textbox()</a></code>, <code><a href='geom_richtext.html'>geom_richtext()</a></code></p></div>

  </div>
  <div class="col-md-3 hidden-xs hidden-sm" id="pkgdown-sidebar">
    <nav id="toc" data-toggle="toc" class="sticky-top">
      <h2 data-toc-skip>Contents</h2>
    </nav>
  </div>
</div>


      <footer>
      <div class="copyright">
  <p>Developed by Claus O. Wilke.</p>
</div>

<div class="pkgdown">
  <p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.6.0.</p>
</div>

      </footer>
   </div>

  


  </body>
</html>


