jescalan / accord

(unmaintained) a unified interface for compiled languages and templates in javascript
Other
137 stars 29 forks source link

Add markdown-it (better markdown engine) #331

Open svicalifornia opened 7 years ago

svicalifornia commented 7 years ago

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?
jescalan commented 7 years ago
  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!

svicalifornia commented 7 years ago

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?

jescalan commented 7 years ago

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.

svicalifornia commented 7 years ago

Ah, that makes sense. :) Thanks!