A web component for securely rendering markdown using @aegisjsproject/markdown
& @aegisjsproject/component
In order to reduce bundle size, only plaintext is available/supported by default. However, you can easily add support for additional languages in a variety of ways:
Note: All languages provided by highlight.js may be found at /es/languages/${lang}.min.js
.
import { HTMLAegisMDElement } from '@aegisjsproject/aegis-md';
import javascript from 'highlight.js/lanuages/javascript.min.js';
import xml from 'highlight.js/languages/xml.min.js';
import css from 'highlight.js/languages/css.min.js';
HTMLAegisMDElement.registerLanguages({ javascript, xml, css });