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 passing options to markdown-it plugins #28

Merged
merged 2 commits into from
Dec 13, 2015
Merged

support passing options to markdown-it plugins #28

merged 2 commits into from
Dec 13, 2015

Conversation

mshick
Copy link
Contributor

@mshick mshick commented Dec 9, 2015

Small change here -- if the plugins array provides an object instead of a string options can be passed to the plugin.

markdown:
  plugins:
    - name: markdown-it-foo
      options:
        param: value

@mshick
Copy link
Contributor Author

mshick commented Dec 9, 2015

Added a test for new plugin def.

@celsomiranda
Copy link
Collaborator

Looks good. I'll merge it and once tested I'll publish the new version to NPM.

celsomiranda pushed a commit that referenced this pull request Dec 13, 2015
support passing options to markdown-it plugins
@celsomiranda celsomiranda merged commit d5b61e2 into hexojs:master Dec 13, 2015
@sappy5678
Copy link

Is it push to npm?
I found npm and github version are different
https://github.com/hexojs/hexo-renderer-markdown-it/blob/master/lib/renderer.js#L14
image

Is it possible to update the npm version?

@stevenjoezhang
Copy link
Member

@sappy5678 New version v4.0.0 & 4.1.0 released on npm

@tomap tomap mentioned this pull request Aug 29, 2021
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.

None yet

4 participants