• HOME
  • USER GUIDE
  • SHOWCASE
  • ABOUT
  • User Guide → Using HTML, JavaScript, CSS

    Using HTML, JavaScript, CSS

    A MarkBind source file can contain a mixture of HTML, JavaScript, and CSS as a normal web page would.

    Text within HTML tags are considered plain text unless the text is preceded by a blank line, in which case the text is parsed as Markdown text.

    Example: Here is an example of how text within an html tag is parsed as Markdown when preceded by a blank line.

    Code:

    <span>
    Without preceding blank line: Apples **Bananas** Cherries
    </span>
    
    <span>
    
    With preceding blank line: Apples **Bananas** Cherries
    </span>
    

    Outcome:

    Without preceding blank line: Apples **Bananas** Cherries

    With preceding blank line: Apples Bananas Cherries

    Alternatively, you can use <markdown> (for block Markdown elements such as headings) or <md> (for inline Markdown elements such as bold/italic text) tags to indicate the text should be treated as Markdown.

    Example: Here is an example of how text within an HTML tag can be treated as Markdown using <markdown>/<md> tags.

    Code:

    <span>
    <md>Apples **Bananas** Cherries</md>
    </span>
    
    <span>
    <markdown>##### Apples **Bananas** Cherries</markdown>
    </span>
    

    Outcome:
    Apples Bananas Cherries

    Apples Bananas Cherries

    Using Components

    Using Plugins