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

Possible to extend markdown while using config.yml? #326

Closed
luminarious opened this issue May 2, 2018 · 5 comments
Closed

Possible to extend markdown while using config.yml? #326

luminarious opened this issue May 2, 2018 · 5 comments

Comments

@luminarious
Copy link

title: Rules
description: Short references
markdown:
    config: md => { md.use(require('markdown-it-deflist')) }

When written like this, the markdown config is turned into a string and not evaluated as a function. Is this intentional?

@ulivz
Copy link
Member

ulivz commented May 2, 2018

Hmmm... why not using config.js?

@ulivz ulivz closed this as completed May 2, 2018
@luminarious
Copy link
Author

Because the documentation said I can, because YAML format is easier to read and write and apart from Markdown configuration it does work exactly as intended.

@yyx990803
Copy link
Member

If you need anything JavaScript you have to use JS.

@luminarious
Copy link
Author

All right, thank you for clarifying.

@berot3
Copy link

berot3 commented Aug 23, 2019

Sorry, so to once more ask for clarification (for newbies like me), how can I use markdown-it-config in a config.yml?

It also would be awesome if you (@luminarious maybe?) could share a full config.yml-example to kickstart the own yaml-config!

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

No branches or pull requests

4 participants