Closed dennisschroer closed 7 years ago
Why do we want this? It reduces the initial page load with ±500 kb.
@denniss17 don't forget to bump the version number. Probably to 3.5.0, but we can leave that to @johnotander 's wishes
@johnotander Any comments?
Still nothing?
Hey @denniss17, my apologies for the delay in reviewing your PR. I've been bogged down with other work this month. Thank you for taking the time to add this functionality, it looks great.
Published to npm as ember-remarkable@3.5.0
.
This PR allows to disable/exclude highlight.js using a configuration option in
config/environment.js
:When HighlightJs is excluded, the component falls back to the default highlighting, and the dependency is no longer included in the
vendor.js
file. This fixes #30.As an additional benefit, this PR allows to easily override the
highlight(str, lang)
function used by remarkable.