https://github.com/robdel12/markdown-code-highlighting
Ember CLI plugin using Marked and Highlight.js for rendering markdown and syntax highlighting with highlight.js
https://github.com/robdel12/markdown-code-highlighting
Last synced: 9 months ago
JSON representation
Ember CLI plugin using Marked and Highlight.js for rendering markdown and syntax highlighting with highlight.js
- Host: GitHub
- URL: https://github.com/robdel12/markdown-code-highlighting
- Owner: Robdel12
- License: mit
- Archived: true
- Created: 2015-01-23T22:22:20.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2022-01-13T15:48:46.000Z (over 4 years ago)
- Last Synced: 2025-01-15T01:50:40.653Z (over 1 year ago)
- Language: JavaScript
- Size: 243 KB
- Stars: 14
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
markdown-code-highlighting [](https://travis-ci.org/Robdel12/markdown-code-highlighting) [](http://emberobserver.com/addons/markdown-code-highlighting)
==============================================================================
An Ember addon for rendering markdown (marked.js) with syntax
highlighting from `highlight.js`
Installation
------------------------------------------------------------------------------
```
ember install markdown-code-highlighting
```
- Install the plugin: `ember install 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](https://highlightjs.org/static/demo/). 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}}`. `body` is what you're
passing in.
Contributing
------------------------------------------------------------------------------
### Installation
* `git clone `
* `cd markdown-code-highlighting`
* `yarn install`
### Linting
* `yarn lint:js`
* `yarn lint:js --fix`
### Running tests
* `ember test` – Runs the test suite on the current Ember version
* `ember test --server` – Runs the test suite in "watch mode"
* `yarn test` – Runs `ember try:each` to test your addon against multiple Ember versions
### Running the dummy application
* `ember serve`
* Visit the dummy application at [http://localhost:4200](http://localhost:4200).
For more information on using ember-cli, visit [https://ember-cli.com/](https://ember-cli.com/).
License
------------------------------------------------------------------------------
This project is licensed under the [MIT License](LICENSE.md).