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

How to get markdown plugins working? #227

Open
trusktr opened this issue Jan 6, 2018 · 1 comment
Open

How to get markdown plugins working? #227

trusktr opened this issue Jan 6, 2018 · 1 comment

Comments

@trusktr
Copy link

trusktr commented Jan 6, 2018

Nice job on this project!

I'm trying to follow the docs on getting a markdown plugin working. For example, I tried installing markdown-it-emoji just like the docs said, then I tried putting :smile: in my markdown, but it just renders :smile: rather than 😄 .

My package.json has this:

  "docpress": {
    "docs": "src", // my API docs are co-located with source files
    "dist": ".docpress",
    "github": "trusktr/infamous",
    "markdown": {
      "emoji": {}
    }
  },

and I installed it, npm i markdown-it-emoji --save-dev --save-exact.

Any idea why do smiley's not appear?

@tincho
Copy link

tincho commented Apr 18, 2019

Hi there-
In case you haven't resolved this, it should be:

"markdown": {
  "plugins": {
    "emoji": {}
  }
}

(notice the plugins key, missing in your file)

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

2 participants