Personally, I don’t see the point. Searching for markdown libraries is not hard, a good library (the same that will show up first) will show you usage instructions at the top. You can copy-paste those and be done.
Also modern JavaScript uses import, require() is very 2015. If the AI is recommending you use require() I would suggest a better one.