Convert Markdown To HTML Using the MD Tag – Markdown-Tag

Category: Javascript , Recommended , Text | May 29, 2022
Author:MarketingPipeline
Views Total:438 views
Official Page:Go to website
Last Update:May 29, 2022
License:MIT

Preview:

Convert Markdown To HTML Using the MD Tag – Markdown-Tag

Description:

Do you love Markdown? Do you want to create a simple HTML page using only Markdown syntax? If so, Markdown-Tag might be for you.

Markdown-Tag is a simple JavaScript library that automatically converts markdown elements wrapped in the <md> tag into HTML contents. Supports both common markdown syntax and GitHub Flavored Markdown Syntax.

How to use it:

1. Download and load the core JavaScript markdown-tag.js in the document.

<script src="markdown-tag.js"></script>

2. Load a Markdown syntax parsing library of your choice in the document.

<script src="markdown-tag-commonmark.js"></script>
<script src="markdown-tag-GitHub.js"></script>

3. Insert your Markdown elements into the <md> tag (or <github-md> tag for GitHub Flavored Markdown Syntax. That’s it.

<md>
  # Markdown-Tag
  Convert Markdown To HTML
  ...
</md>
// OR
<github-md>
  # Markdown-Tag
  Convert Markdown To HTML
  ...
</github-md>

You Might Be Interested In:


Leave a Reply