@lowlighter/markdown 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/plugins/mod.ts ADDED
@@ -0,0 +1,14 @@
1
+ export { default as anchors } from "./anchors.ts"
2
+ export { default as directives, directive, h } from "./directives.ts"
3
+ export { default as emojis } from "./emojis.ts"
4
+ export { default as frontmatter } from "./frontmatter.ts"
5
+ export { default as gfm } from "./gfm.ts"
6
+ export { default as highlighting } from "./highlighting.ts"
7
+ export { default as linebreaks } from "./linebreaks.ts"
8
+ export { default as markers } from "./markers.ts"
9
+ export { default as math } from "./math.ts"
10
+ export { default as mermaid } from "./mermaid.ts"
11
+ export { default as ruby } from "./ruby.ts"
12
+ export { create as createSanitization, default as sanitize } from "./sanitize.ts"
13
+ export { default as uncomments } from "./uncomments.ts"
14
+ export { default as wikilinks } from "./wikilinks.ts"
package/renderer.ts CHANGED
@@ -32,9 +32,13 @@ export class Renderer {
32
32
  * @example
33
33
  * ```ts
34
34
  * import { Renderer } from "./renderer.ts"
35
- * import pluginGfm from "./plugins/gfm.ts"
36
- *
37
- * const renderer = new Renderer({ plugins: [ pluginGfm ] })
35
+ * await Renderer.render("# Hello, world!")
36
+ * ```
37
+ * @example
38
+ * ```ts
39
+ * import { Renderer } from "./renderer.ts"
40
+ * import { gfm, highlighting, math, markers, wikilinks, sanitize } from "./plugins/mod.ts"
41
+ * const renderer = new Renderer({ plugins: [ gfm, highlighting, math, markers, wikilinks, sanitize ] })
38
42
  * await renderer.render("# Hello, world!")
39
43
  * ```
40
44
  */