1.12.3 • Published 2 years ago

@patternfly/pfe-markdown v1.12.3

Weekly downloads
208
License
MIT
Repository
github
Last release
2 years ago

PatternFly Elements Markdown

Use this element to take markdown and have it display as HTML. This element uses the marked.js library to convert the markdown to HTML.

Read more about Markdown in the PatternFly Elements Markdown documentation

Installation

Load <pfe-markdown> via CDN:

<script src="https://unpkg.com/@patternfly/pfe-markdown?module"></script>

Or, if you are using NPM, install it

npm install @patternfly/pfe-markdown

Then once installed, import it to your application:

import '@patternfly/pfe-markdown';

Usage

<pfe-markdown>
  <div pfe-markdown-container># This is a heading</div>
</pfe-markdown>

It is important that the div with the pfe-markdown-container attribute is present. Without it, the element won't work. This element does not actually use the shadow DOM to display it's contents.

At runtime, a child div with an attribute of pfe-markdown-render is appended to the light DOM and the pfe-markdown-container div is hidden with an inline style. The purpose behind this is so that all of the styles that are present in the light DOM are available to the converted markdown.

2.0.0-next.3

2 years ago

2.0.0-next.2

2 years ago

2.0.0-next.1

2 years ago

1.12.3

2 years ago

2.0.0-next.0

2 years ago

1.12.2

2 years ago

1.12.1

2 years ago

1.12.0

3 years ago

1.11.2

3 years ago

1.11.1

3 years ago

1.11.0

3 years ago

1.10.1

3 years ago

1.10.0

3 years ago

1.9.3

3 years ago

1.9.2

3 years ago

1.9.1

3 years ago

1.9.0

3 years ago

1.8.0

3 years ago

1.7.0

3 years ago

1.6.0

3 years ago

1.5.1

3 years ago

1.5.0

3 years ago

1.4.0

3 years ago

1.3.4

3 years ago

1.3.3

3 years ago

1.3.2

3 years ago

1.3.1

3 years ago

1.3.0

3 years ago

1.2.0

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago