Package Exports
- markdown-code-highlighting
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (markdown-code-highlighting) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Markdown-code-highlighting
Usage
- Install the plugin:
npm install markdown-code-highlighting --save-dev - Run the generator:
ember g markdown-code-highlighting - In your Brocfile you'll need to import the CSS styling you want for the highlighter. You can see the full list here. When you pick one you'll (like github.css) you'll import it by doing:
app.import("bower_components/highlightjs/styles/github.css"); - Now format some markdown! Call the helper on anything that has markdown by doing:
{{format-markdown body}}.bodyis what you're passing in.
Contributing
Installation
git clonethis repositorynpm installbower install
Running
ember server- Visit your app at http://localhost:4200.
Running Tests
ember testember test --server
Building
ember build
For more information on using ember-cli, visit http://www.ember-cli.com/.