accord icon indicating copy to clipboard operation
accord copied to clipboard

Add markdown-it (better markdown engine)

Open svicalifornia opened this issue 7 years ago • 4 comments

markdown-it has an impressive set of extensions for customizing the syntax and features of Markdown. Many folks consider it to be a much better engine than marked.

  1. Is it possible to add markdown-it as a language option in accord?
  2. Is it possible to configure Roots to replace marked with markdown-it for .markdown and .md files?

svicalifornia avatar May 29 '17 11:05 svicalifornia

  1. Yes it is
  2. I don't see why not

You'd just have to make a pull request to accord to add an engine for markdown-it!

jescalan avatar Jun 06 '17 22:06 jescalan

Great. But will there be a conflict on the .markdown and .md extensions with the existing marked engine? How will accord resolve those file extensions when a second engine is added on the same extensions?

svicalifornia avatar Jun 06 '17 22:06 svicalifornia

Yeah, you'd just have to not have marked and markdown-it both in your package.json. With both there, you'd have a conflict, but with one you're set.

jescalan avatar Jun 06 '17 22:06 jescalan

Ah, that makes sense. :) Thanks!

svicalifornia avatar Jun 06 '17 22:06 svicalifornia