1.1.0 • Published 3 years ago

@sphido/markdown v1.1.0

Weekly downloads
6
License
MIT
Repository
-
Last release
3 years ago

@sphido/markdown

Sphido page extender that transform page.content markdown to HTML with marked.

Install

yarn add @sphido/markdown

Example

import globby from 'globby';
import {getPages} from '@sphido/core';
import {markdown, renderer} from '@sphido/markdown';
 
// @see https://marked.js.org/using_pro#renderer

renderer({
  table: (header, body)  => `<table class="table table-bordered table-striped bg-white m-1">${header}${body}</table>`
});

(async () => {

  const pages = await getPages(
    await globby('content/**/*.{md,html}'),
    markdown
  );

})();

Source codes

https://github.com/sphido/sphido/tree/main/packages/sphido-markdown

1.1.0

3 years ago

1.0.17

3 years ago

1.0.16

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago