How to use the remark-stringify.Compiler function in remark-stringify

To help you get started, we’ve selected a few remark-stringify examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github flood-io / element / packages / documented / src / markdown / Document.ts View on Github external
public toMarkdown() {
		this.applyFrontMatterData()

		let lastRoot = this.tree
		this.middlewares.forEach(fn => {
			lastRoot = fn(lastRoot)
		})

		this.compiler = new Compiler(lastRoot, { entities: false, gfm: true })
		attachFrontmatterCompiler(this.compiler)

		return this.compiler.compile()
	}
}
github Siteimprove / alfa / packages / alfa-markdown / src / render.ts View on Github external
export function render(node: T): string {
  const compiler = new Compiler(node);
  return compiler.compile();
}

remark-stringify

remark plugin to add support for serializing markdown

MIT
Latest version published 1 year ago

Package Health Score

79 / 100
Full package analysis

Popular remark-stringify functions