1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-23 15:19:42 +02:00
documize/gui
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
..
app Render HTML in Markdown during previews as well 2019-08-01 21:02:35 +02:00
config Add animation for ember attacher popup components 2019-03-13 11:42:55 +00:00
mirage EmberJS: FolderID to SpaceID 2018-10-12 17:54:15 +01:00
public Enable doc section expand/collapse 2019-06-05 11:09:24 +01:00
tests Upgrade UI framework to Ember v3.10.0 2019-05-16 12:49:27 +01:00
vendor Copy link to section to clipboard 2019-06-05 12:52:15 +01:00
.ember-cli moved emberjs to gui folder 2017-07-19 14:48:33 +01:00
.eslintignore Replaced underscore.js & is.js with lodash.js 2019-03-03 13:10:04 +00:00
.eslintrc.js Copy link to section to clipboard 2019-06-05 12:52:15 +01:00
.gitignore Upgrade EmberJS to v3.8.0 2019-02-28 17:46:02 +00:00
.template-lintrc.js Upgrade UI framework to Ember v3.10.0 2019-05-16 12:49:27 +01:00
.travis.yml [WIP] Upgrade EmberJS to 3.5.x 2018-12-08 15:35:41 +00:00
.watchmanconfig Support dual login via LDAP and forms authentication 2019-05-13 16:14:11 +01:00
ember-cli-build.js Copy link to section to clipboard 2019-06-05 12:52:15 +01:00
package.json Prep v3.1.0 build 2019-06-25 17:52:03 +01:00
README.md [WIP] Upgrade EmberJS to 3.5.x 2018-12-08 15:35:41 +00:00
testem.js [WIP] Upgrade EmberJS to 3.5.x 2018-12-08 15:35:41 +00:00
yarn.lock v3 build prep 2019-06-11 11:41:09 +01:00

Documize

This README outlines the details of collaborating on this Ember application. A short introduction of this app could easily go here.

Prerequisites

You will need the following things properly installed on your computer.

Installation

  • git clone <repository-url> this repository
  • cd documize
  • npm install
  • bower install

Running / Development

Code Generators

Make use of the many generators for code, try ember help generate for more details

Running Tests

  • ember test
  • ember test --server

Linting

  • npm run lint:hbs
  • npm run lint:js
  • npm run lint:js -- --fix

Building

  • ember build (development)
  • ember build --environment production (production)

Deploying

Specify what it takes to deploy your app.