mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-25 01:05:55 +03:00
[GH-ISSUE #129] How to import or include the markdownlint module ? #107
Labels
No labels
bug
enhancement
enhancement
enhancement
fixed in next
fixed in next
fixed in next
new rule
new rule
new rule
pull-request
question
refactoring
refactoring
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/markdownlint#107
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mithuns on GitHub (Jun 26, 2018).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/129
I am just simply trying to use the demo code, in a simple node js app.
So, I have a pad.ejs, which is like a notepad where you can post markdown raw code and it follows the same idea as the demo here.
I have the scripts included in my ejs file.
And the default.js is same as default.js from demo. I have not modified anything and yet , the console throws this error
So, this just seems like the module is not getting loaded somehow from the script.

This is the package structure that I have
I have not done a lot of nodejs development, it could be just something really silly or small that I am not doing right, can someone please help.
Thanks
@DavidAnson commented on GitHub (Jun 26, 2018):
You need to include markdown-it and you don’t need two copies of markdownlint. Have a look at https://github.com/DavidAnson/markdownlint/blob/master/demo/default.htm and the containing directory for a working example.
@mithuns commented on GitHub (Jun 26, 2018):
Thanks, that solved my problem.
We can close this.
@DavidAnson commented on GitHub (Jun 26, 2018):
Yay!