ng2-markdown-to-html

v1.3.2
Angular 2+ library that uses marked to parse markdown to html combined with Prism.js for synthax highlights
angular angular2 angular-2 markdown markdown-to-html marked ng2 parser prism and 2 more...

build

ng build

e2e

ng e2e

lint

tslint "src/**/*.ts"

ng

ng

start

npm run clean:dist && ng serve

test

ng test

coveralls

cat "./coverage/lcov.info" | "./node_modules/coveralls/bin/coveralls.js"

build:gh-pages

ng build --prod --base-href "https://jfcere.github.io/ng2-markdown-to-html/"

publish:gh-pages

angular-cli-ghpages --message "Publish gh-pages"

prebuild:lib

npm run clean:dist && npm run clean:inline-template && npm run clean:artifact

build:lib

npm run inline-template && npm run transpile && npm run package && npm run minify

postbuild:lib

npm run clean:inline-template && npm run clean:artifact

clean:artifact

rimraf src/**/*.ngfactory.ts src/**/*.ngsummary.json src/**/*.ngstyle.ts

clean:dist

rimraf dist

clean:inline-template

rimraf **/inline-template

clean:package

rimraf package *.tar *.tgz

inline-template

gulp inline-template

transpile

ngc -p src/tsconfig.lib.json

package

rollup -c

minify

uglifyjs dist/bundles/ng2-markdown-to-html.umd.js --screw-ie8 --compress --mangle --comments --output dist/bundles/ng2-markdown-to-html.umd.min.js
npm i ng2-markdown-to-html

Metadata

  • MIT
  • Whatever
  • Jean-Francois Cere
  • released 9/17/2017

Downloads

Maintainers