1.1.0 • Published 2 years ago

@sphido/markdown v1.1.0

Weekly downloads
6
License
MIT
Repository
-
Last release
2 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

2 years ago

1.0.17

2 years ago

1.0.16

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago