1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-21 14:19:43 +02:00
Commit graph

9 commits

Author SHA1 Message Date
Maximilian Bosch
444b4fd1f7
Render HTML in Markdown during previews as well
When having e.g. a markdown-based section in a document where you
reference another document, a HTML-link is generated. However when
previewing changes, the raw HTML is shown.

With setting `html: true` in the configuration for `markdownit`[1],
HTML is detected and properly parsed (Also markup tags such as `<h1>`
are rendered properly just like when using `blackfriday` to request a rendered
section).

Regarding probably harmful side-effects: setting e.g. `<style>* { display:
none !important; }</style>` causes a white page with `markdownit` as
well as with `blackfriday`. `<script>` tags aren't affected since
`handlebars` mostly breaks with `<script>` tags within variables that
are substituted using `{{{var}}}` into the DOM[3].

Please note that I didn't commit the modifications in `embed/bindata.go`
as it seemed to me after looking at the history that those updates are
only done when preparing a release.

[1] 1ad3aec204/lib/presets/default.js (L6-L9)
[2] https://github.com/documize/blackfriday/blob/master/markdown.go#L105-L146
[3] https://github.com/wycats/handlebars.js/issues/531
2019-08-01 21:02:35 +02:00
Harvey Kandola
566807bc14 Replaced underscore.js & is.js with lodash.js 2019-03-03 13:10:04 +00:00
Harvey Kandola
bc28b36627 Make Markdown editor use Ember input helper 2019-01-09 11:03:58 +00:00
sauls8t
c0d70e38de Save smart sections correctly post callback refactoring 2018-01-24 14:00:12 +00:00
sauls8t
5dd7d9c181 upgraded Ember and Bootstrap, merged changes 2018-01-22 10:31:03 +00:00
Harvey Kandola
9a804b5666 guard against no meta data before trim() 2017-12-21 13:10:05 +00:00
Harvey Kandola
9dcaf697a8 section UX complete 2017-12-09 12:21:14 +00:00
Harvey Kandola
b31ab712c1 upgraded Ember and integrated Bootstrap 4
Upgraded to Ember JS 2.16.x release. This upgrade uses the new JavaScript modules API syntax.

Integrated Bootstrap 4 Beta 2 via package.json and associated popper.js library. Overridden Bootstrap styles using bootstrap.scss -- this file selectively imports the modules we need.
2017-11-16 13:28:05 +00:00
Harvey Kandola
dc49dbbeff moved emberjs to gui folder 2017-07-19 14:48:33 +01:00