Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
E

ember-cli-showdown

> 编程语言
Open source

Ember component to render markdown into HTML.

100 stars0 likes1 views
WebsiteGitHub

About

Ember component to render markdown into HTML.

ember-cli-showdown

This addon provides a component that transforms Markdown into valid HTML.

  • Fastboot compatible

Compatibility

  • Ember.js v3.28 or above
  • Embroider or ember-auto-import v2

Installation

  • ember install ember-cli-showdown

Usage

Passing a markdown string inline:

handlebars
xml

Markdown is cool link

You can also pass a bound value:

handlebars

Showdown Options

You can use configuration settings from Showdown:

handlebars

Global Showdown Options

Global options are supported as of 2.11.x. This lets you define options that will be used for showdown options that were not provided as an attribute.

An example where you always want to auto link:

javascript
// config/environment.js
module.exports = function (environment) {
  var ENV = {
    showdown: {
      simplifiedAutoLink: true,
    },
  };

  return ENV;
};

Showdown Extensions

You can load Showdown Extensions by specifying the "extensions" property when initializing your component:

handlebars
handlebars

(myExtensionList can be an array of strings or a space separated string)

Note that you'll have to register your extensions with Showdown first. For example, in an initializer:

javascript
// app/initializers/register-showdown-extensions.js
import showdown from "showdown";

export function initialize() {
  showdown.extension("myExtensionName", function () {
    return [
      {
        type: "html",
        regex: "
",
        replace: '
',
      },
    ];
  });
}

export default {
  name: "register-showdown-extensions",
  initialize,
};

3.x to 4.3 migration

  • Global showdown is no longer supported. Must be imported via import showdown from 'showdown'
  • Remove any use of FastBoot.require('require') with import showdown from 'showdown'

7.x to 8.x migration

  • Positional parameters are no longer supported. Use the @markdown argument to provide the markdown content to ``.

Dependencies

  • Showdown

Contributing

See the Contributing guide for details.

License

This project is licensed under the MIT License.

Issues· 8 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

JavaScript

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言