mirror of
https://github.com/documize/community.git
synced 2025-07-23 15:19:42 +02:00
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]
|
||
---|---|---|
.. | ||
app | ||
config | ||
mirage | ||
public | ||
tests | ||
vendor | ||
.ember-cli | ||
.eslintignore | ||
.eslintrc.js | ||
.gitignore | ||
.template-lintrc.js | ||
.travis.yml | ||
.watchmanconfig | ||
ember-cli-build.js | ||
package.json | ||
README.md | ||
testem.js | ||
yarn.lock |
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 repositorycd documize
npm install
bower install
Running / Development
ember serve
- Visit your app at http://localhost:4200.
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.