ember-markdown-html

0.0.1 • Public • Published

ember-markdown-html

Convert static Markdown files to HTML using Showdown at build time.

Installation

ember install ember-markdown-html

Usage

Currently this addon is hardcoded to look for Markdown files in a markdown folder at the project's root.

You can render the HTML by calling the provided helper:

{{! Example: './markdown/my_markdown_file.md' }}
{{render-markdown "my_markdown_file"}}

Otherwise you will have access to the JSON object by importing the output file:

import markdown from 'ember-markdown-html/markdown-html';
// => { [file_name]: 'html', ... }

Contributing

Installation

  • git clone <repository-url>
  • cd ember-markdown-html
  • 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

For more information on using ember-cli, visit https://ember-cli.com/.

License

This project is licensed under the MIT License.

Readme

Keywords

Package Sidebar

Install

npm i ember-markdown-html

Weekly Downloads

2

Version

0.0.1

License

MIT

Unpacked Size

7.78 kB

Total Files

14

Last publish

Collaborators

  • vevix