Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export Renderer constructor function #162

Merged
merged 2 commits into from
May 20, 2019
Merged

Conversation

gosukiwi
Copy link
Contributor

This will allow consumers to extend from this class to create their own custom renderers, so they can export to any other format besides HTML and XML, such as JSON, Markdown (for transformations/linters), etc.

Export the `Renderer` class so consumers can use it as a base class for their own custom `Renderer`'s.
@jgm jgm merged commit 4e34259 into commonmark:master May 20, 2019
@jgm
Copy link
Member

jgm commented May 20, 2019

makes sense, thanks!

taku0 added a commit to taku0/cmark-el that referenced this pull request Dec 28, 2019
Export the `Renderer` class so consumers can use it as a base class for their own custom `Renderer`'s.

commonmark/commonmark.js@4e34259
Author: Federico Ramirez <fedekiller@gmail.com>
Date:   Mon May 20 13:53:41 2019 -0300
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants