Perplex
  • News
  • Docs
  • Blog
  • About
  • GitHub

Tag: Replacement

Code for missing inline HTML in single curly braces

  • Blackboard with Einstein's most famous formula
    • Docs
    • ›
    • Extended

    Super-, Subscripts, and Fractions

    There is an extra markup in Hugo for vertically shifted characters in normal text.

    • Georg Makowski
  • Open red marker
    • Docs
    • ›
    • Extended

    Mark

    Mark and highlight inline text as especially important.

    • Georg Makowski
  • A HTML tag
    • Docs
    • ›
    • Enhancing
    • ›
    • Replacements

    How to use replacements

    Text enclosed by curly braces { and } and special ASCII signs is replaced with missing Markdown tags after rendering.

    • Georg Makowski
  • An old typewriter with cactuses growing inside
    • Docs
    • ›
    • Enhancing
    • ›
    • Replacements

    Keyboard Legend

    Refer explicitly to keyboard strokes in your text.

    • Georg Makowski
  • A sign on a tree cites Martin Luther King in French: “Croyez en vos rêves et ils se réaliseront peut-être. Croyez en vous et ils se réaliseron sûrement.”
    • Docs
    • ›
    • Enhancing
    • ›
    • Replacements

    Referencing the work of others

    This replacement code wraps the HTML tag around the marked content.

    • Georg Makowski
  • A page in a book with a lot of line breaks
    • Docs
    • ›
    • Enhancing
    • ›
    • Replacements

    Conditional Break

    Sometimes we like to break a title or a line only for those layout versions, which show the text in full width.

    • Georg Makowski
  • A page in a book with a lot of line breaks
    • Docs
    • ›
    • Enhancing
    • ›
    • Replacements

    Word Break

    Very long strings that are not hyphenated automatically may need an optional line break without a hyphen. We can generate the HTML tag with this replacement code.

    • Georg Makowski
  • A HTML tag
    • Docs
    • ›
    • Appendix

    replacements.html

    This template file from the module hugo-mod-replacements contains the regular expressions for all replacement codes.

    • Georg Makowski
  • A HTML tag
    • News
    • •
    • Module
    Feb 22, 2023

    Hugo Module 
    for HTML inline tags missing in Goldmark

    Replacement codes let us avoid raw HTML in Markdown. 
    A single partial replaces them with the inline tags 
    lacking a syntax element in Goldmark.

    • Georg Makowski

All Taxonomies

    • Markdown (54)‍•
    • Configuration (13)‍•
    • Design (10)‍•
    • Template (9)‍•
    • Module (8)‍•
    • Getting Started (7)‍•
    • Overview (4)‍•
    • Release (3)
    • Block (15)‍•
    • Image (13)‍•
    • Inline (10)‍•
    • Hugo (9)‍•
    • Replacement (9)‍•
    • Attribute (7)‍•
    • Workflow (6)‍•
    • Fluid Responsive (5)‍•
    • Page (5)‍•
    • Site (5)‍•
    • Accessible (4)‍•
    • Color (4)‍•
    • Linebreak (4)‍•
    • List (4)‍•
    • Menu (4)‍•
    • Security (4)‍•
    • Code (3)‍•
    • Diagram (3)‍•
    • Feature (3)‍•
    • Punctuation (3)‍•
    • Shortcode (3)‍•
    • Author (2)‍•
    • Embedded (2)‍•
    • Headings (2)‍•
    • Icon (2)‍•
    • Latex (2)‍•
    • Marginal Note (2)‍•
    • Mermaid (2)‍•
    • Navigation (2)‍•
    • Paragraph (2)‍•
    • Related (2)‍•
    • Resources (2)‍•
    • Search (2)‍•
    • Stand-Alone (2)‍•
    • CSS (1)‍•
    • Installation (1)‍•
    • License (1)‍•
    • Privacy (1)‍•
    • Quote (1)‍•
    • Spacing (1)‍•
    • Table (1)‍•
    • Taxonomies (1)‍•
    • Title (1)‍•
    • Tracking (1)‍•
    • VSCode (1)
    • Images (7)‍•
    • Demo (2)

Theme

Apache 2.0 license

Credits

 Thanks to you all!

Content

Creative Commons 4.0 logo

unless noted otherwise.

Generated by

Hugo logo

Apache 2.0 license

Deployed by

  • Netlify
  • GitHub

Tested with

  • PageSpeed Insights
  • HTML-Proofer
  • Sonarcloud
  • Wave
  • Browserstack

Legal matters

  • Licenses
  • Impressum