• ♡ Sponsor

    markdown

    #HTML

    Parses a Markdown formatted text and returns the generated HTML markup. Note that Automad actually also supports the slightly extended markdown flavor called Markdown Extra.

    @{ text | markdown (multilineOnly) }
    

    Parameters

    multilineOnly False
    If set to true, only a text with multiple lines will be parsed. The default is false.

    Example

    The standard usage of this function looks like this:

    @{ text | markdown }
    

    Related

    Pipe  ⁄
    stripTags — Pipe

    Removes all Markdown syntax and HTML tags from a variable value. This function doesn't expect any parameters.

    • Automad
    • Developer Guide
    • Building Themes
    • Template Language
    • Pipe
    • markdown
    Discuss
    Packages
    Release Notes
    Support
    Terms of Use
      Become a Sponsor
      GitHub
      Twitter
      Facebook
      Instagram
      2013-2022 by Marc Anton Dahmen
    Released under the MIT license

    A faceless machine, creating one's portrait in the internet.
  • Automad
  • Getting Started
  • System
  • User Guide
  • Developer Guide
  • Headless Mode
  • Discuss
  • Packages
  • Developer Guide ←
  • Building Themes ←
  • Template Language ←
  • Pipe
  • ceil
  • dateFormat
  • def
  • escape
  • findFirstImage
  • findFirstParagraph
  • floor
  • markdown
  • match
  • replace
  • round
  • sanitize
  • shorten
  • stripEnd
  • stripStart
  • stripTags
  • strlen
  • strtolower
  • strtoupper
  • ucwords