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

Category: Javascript , Recommended , Text | November 10, 2022
Author:MarketingPipeline
Views Total:704 views
Official Page:Go to website
Last Update:November 10, 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>

Changelog:

v1.0.4 (11/10/2022)

  • CSS / stylesheet that is automatically applied when using github-md tag, has been updated.

You Might Be Interested In:


Leave a Reply