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

Addin setFlavor function #21

Open
SyntaxRules opened this issue Sep 22, 2015 · 1 comment
Open

Addin setFlavor function #21

SyntaxRules opened this issue Sep 22, 2015 · 1 comment
Milestone

Comments

@SyntaxRules
Copy link
Member

Add in set flavor function into the $showdownProvider. This would be a new option.

@collaborator99
Copy link

+1
I wound up doing the following:

var github = { //  the github object was taken from flavor.github in showdown.js
    omitExtraWLInCodeBlocks: true,
    prefixHeaderId: 'user-content-',
    simplifiedAutoLink: true,
    literalMidWordUnderscores: true,
    strikethrough: true,
    tables: true,
    tablesHeaderId: true,
    ghCodeBlocks: true,
    tasklists: true
};
for (var key in github) {
    $showdown.setOption(key, github[key]);
}

Any suggestions on a simpler way?

@SyntaxRules SyntaxRules modified the milestone: 2.0.0 Dec 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants