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

Support an enhanced Marpit enable state #64

Merged
merged 3 commits into from
Jan 31, 2019

Conversation

yhatt
Copy link
Member

@yhatt yhatt commented Jan 31, 2019

Marp Core should support an enhanced Marpit enable state, provided by Marpit v0.7.0. StateCore.marpit(false) in core rule can disable Marp features together with Marpit now.

We also added a trick to track enable state to decide whether rendering extended mark up in the renderer added by Marp Core. When Marpit state is disabled, we should render as if not using Marpit and Marp Core.

In addition, a few tokens have prefixed marp_ to prevent the collision between other plugins.

We're working this to support switching Markdown preview and Marp slide deck preview in planned Marp VSCode plugin. (yhatt/marp#118)

@yhatt yhatt merged commit 6a6b7df into master Jan 31, 2019
@yhatt yhatt deleted the support-enhanced-marpit-plugin branch January 31, 2019 07:26
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.

1 participant