Skip to content

A markdown parser and compiler. Built for speed.

License

Notifications You must be signed in to change notification settings

code4fukui/Markdown

 
 

Repository files navigation

Markdown.js

Markdown.js is an ES module forked Marked

Usage

MarkdownのURLを指定して表示できます(CSSも指定可能) image https://code4fukui.github.io/Markdown/

URLパラメーターで外部ファイルを読み込めます(runs as link)

https://code4fukui.github.io/Markdown/?url=https://code4fukui.github.io/Markdown/test/test.md

URLパラメーターで外部ファイルをCSSと共に読み込めます(runs as link with css)

https://code4fukui.github.io/Markdown/?url=https://code4fukui.github.io/Markdown/test/test.md&css=https://code4fukui.github.io/Markdown/test/style.css

HTML拡張タグで外部ファイルを読み込めます(extended HTML tag supports the outer file)

<script type="module" src="https://code4fukui.github.io/Markdown/mark-down.js"></script>
<mark-down src="test.md"></mark-down>

HTML拡張タグ内にMarkdownが記述できます(extended HTML tag)

<script type="module" src="https://code4fukui.github.io/Markdown/mark-down.js"></script>
<mark-down>
# title
</mark-down>

ブラウザやDenoで使えます (runs on browsers and Deno)

import { Markdown } from "https://code4fukui.github.io/Markdown/Markdown.js";

const html = Markdown.toHTML("# title");
console.log(html); // <h1 id="title">title</h1>

What is Markdown

Daring Fireball: Markdown
https://daringfireball.net/projects/markdown/

Using at

「研究開発型スタートアップと事業会社のオープンイノベーション促進のためのモデル契約書ver1.0」の改訂に向けた、GitHub(ギットハブ)を用いた意見募集
https://github.com/meti-oi-startups/METI-JPO-Model-Contract

About

A markdown parser and compiler. Built for speed.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 96.9%
  • HTML 2.9%
  • CSS 0.2%