• HOME
  • USER GUIDE
  • SHOWCASE
  • ABOUT
  • Tips & Tricks

    Escaping Characters

    For Markdown syntax: To display a literal character that are normally used for Markdown formatting, add a backslash (\) in front of the character.

    CODE:

    \* item 1
    
    * item 1
    

    OUTPUT:

    * item 1

    • item 1

    More info: https://www.markdownguide.org/basic-syntax#escaping-characters

    Using {% raw %}{% endraw %} to display {{ content }}

    To display the raw variable interpolation syntax using {% raw %}{% endraw %}, you would also need to add the v-pre attribute using markdown-it-attrs or as a html attribute.

    This isn't necessary for <code> elements, markdown code fences and inline code though, which markbind automatically adds v-pre for.

    However, this does not change the need for {% raw %}{% endraw %}. Meaning, you can still use variables within your code!

    When you use links or triggers, you may encounter a situation where an unwanted space is being generated by MarkBind:

    • Code:

      The
      [[link](https://example.com)].
      
    • Expected output: The [link].

    • Actual output (notice the additional space in front of the link): The [ link].

    • Solution: Wrap the link or trigger around with <md> tags.

      The
      <md>[[link](https://example.com)]</md>.