-
Notifications
You must be signed in to change notification settings - Fork 6
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
QUESTION: Using plugins with the gulp task? #4
Comments
I know this is 9 months too late, but in case anybody else has the same problem, in your code, the variable |
I reinstalled everything, reinstalled markdown-it, reinstalled the plugins, made sure that the code references the array without nesting and now I get the following error
|
Looking at the stack trace, that's an issue with one of the plugins you're using. I'd recommend disabling the plugins, then re-enabling them one-by-one until it breaks so you can figure out which one. It's also worth checking the versions of each plugin you're using. I searched the error message and found this issue referenced in the markdown-it-anchor plugin, so maybe try to disable that one first. If not, it could be one of the other plugins has the same or similar bug. |
Again, thanks for your help. Removing the plugin solved the problem. The version installed via NPM is ancient. I've asked in the issue if the plugin is still being released in NPM or not. There are other issues with gulp-markdown-it. It uses markdown-it 4.x instead of the current 8.x. I may have to revert back to remarkable if it continues being an issue. |
No worries! Glad to be of assistance. As you've had no response from the author, I feel less guilty pointing you toward my own gulp task for markdown-it: https://github.com/trwolfe13/gulp-markdownit. I made it after I couldn't get this one to work as I needed. It functions almost the same as this one, with the difference that it doesn't rely on a specific version of markdown-it, and allows more control over plugin initialisation. |
I'm using the following task.
MARKDOWN_PLUGINS is a variable that contains all the plugins I want to use
The task runs successfully but none of the plugins seems to be running. I can't get the expected results from the plugins. Implicit figures doesn't render as expected among other issues I'm finding.
Am I using the plugins correctly? If not what should I use to get these plugins working?
The text was updated successfully, but these errors were encountered: