0.9.0 • Published 2 years ago

@uppercod/markdown-inline v0.9.0

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

@uppercod/markdown-inline

This package allows the use of markdown thanks to the use of Template literals, the parser @uppercod/markdown-inline transforms the template into tree format created from a createElement type function, example pragma(tag: string, props: any, ...children: any []):any, being this friendly with the virtualDOM.

Install

npm install @uppercod/markdown-inline

Usage

import { createElement } from "react";
import { setup } from "@uppercod/markdonn";

const md = setup(createElement);

md`
# example

bla bla bla...

**bold**

_italic_

[link](#link)

![image](./my.jpg)

Custom ${(<MyComponent />)}

`;

Todo

  • Nested lists: The parser generates a tag index that defines the depth of the tag. I have not applied that argument to create nested lists.
  • Line division.
  • Task lists.
0.9.0

2 years ago

0.8.0

2 years ago

0.1.0

3 years ago

0.3.0

3 years ago

0.2.0

3 years ago

0.7.1

3 years ago

0.5.0

3 years ago

0.4.0

3 years ago

0.7.0

3 years ago

0.6.0

3 years ago

0.0.1

3 years ago

0.0.0

3 years ago