-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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
[BREAKING] Rename Marked to MarkdownBlock #162
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you rebase this after the merge of #153?
Rebased. |
This is good to go. I think it's alright to use |
It's a small breaking change, so we can hold off on merging until we deploy a new package. |
@@ -239,7 +239,7 @@ function execute(port) { | |||
if (metadata.layout && siteConfig.layouts[metadata.layout]) { | |||
Doc = siteConfig.layouts[metadata.layout]({ | |||
React, | |||
Marked: require("../core/Marked.js") | |||
MarkdownBlock: require("../core/MarkdownBlock.js") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm the only one to use this, feel free to merge and i'll update my code. I have to work anyway to deal with the hljs migration.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should export CompLibrary here instead?
This is a breaking change that renames the Marked component, which is exposed to clients via CompLibrary, to MarkdownBlock. This moves us away from exposing internal implementation details to clients, and gives us flexibility to change markdown parsing/rendering engines in the future.
This is built on top of the
remarkable
branch, therefore #153 should be merged first.