jonschlinkert / remarked

No longer maintained, see remarkable instead!
https://github.com/jonschlinkert/remarkable/
MIT License
6 stars 1 forks source link

Remove extra tags/attributes from generated HTML #5

Open jonschlinkert opened 10 years ago

jonschlinkert commented 10 years ago

e.g. heading ids (started)

tunnckoCore commented 10 years ago

clarify?

jonschlinkert commented 10 years ago

technically I already did this, so I should probably mark it complete. one example is that marked.js adds ids to headings, which makes no sense to do by default. we sometimes get duplicate ids on a page because of it.

I want to make it easier for the user to customize these things: https://github.com/jonschlinkert/remarked/blob/master/lib/renderer.js#L60-L67. I'm not sure if lodash templates is the way to go yet, but I created a few to test out https://github.com/jonschlinkert/remarked/blob/master/lib/templates/heading.js

tunnckoCore commented 10 years ago

Oooh.. yep, good approach. Thanks for clarification.