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

Add html option #7

Merged
merged 3 commits into from
Aug 30, 2018
Merged

Add html option #7

merged 3 commits into from
Aug 30, 2018

Conversation

yhatt
Copy link
Member

@yhatt yhatt commented Aug 30, 2018

This PR will add --html option to enable or disable HTML tag.

For security reason, Both of Marpit and Marp Core have disabled HTML by default (In future we might allow several tags like <br> by whitelisting). CLI interface can allow HTML by user's operation.

marp markdown.md --html
marp markdown.md --html=true

# This option would be useful when Marp Core supported HTML whitelist.
marp markdown.md --html=false

For supporting Marpit based engine, we will set markdown-it's html option forcely.

To avoid confusing with an export type (HTML or PDF), we added option group about Marp / Marpit Options to the help message.

@yhatt yhatt merged commit 0e31eaa into master Aug 30, 2018
@yhatt yhatt deleted the html-option branch August 30, 2018 07:49
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