https://github.com/aegisjsproject/aegis-md
A web component for securely rendering markdown
https://github.com/aegisjsproject/aegis-md
aegis markdown security
Last synced: 12 months ago
JSON representation
A web component for securely rendering markdown
- Host: GitHub
- URL: https://github.com/aegisjsproject/aegis-md
- Owner: AegisJSProject
- License: mit
- Created: 2024-02-28T19:09:20.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2025-06-23T15:53:32.000Z (12 months ago)
- Last Synced: 2025-06-23T16:34:49.208Z (12 months ago)
- Topics: aegis, markdown, security
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/@aegisjsproject/aegis-md
- Size: 698 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# `@aegisjsproject/aegis-md`
A web component for securely rendering markdown using `@aegisjsproject/markdown` & `@aegisjsproject/component`
[](https://github.com/shgysk8zer0/aegis-md/actions/workflows/codeql-analysis.yml)


[](https://@github.com/AegisJSProject/aegis-md/blob/master/LICENSE)
[](https://@github.com/AegisJSProject/aegis-md/commits/master)
[](https://@github.com/AegisJSProject/aegis-md/releases)
[](https://github.com/sponsors/shgysk8zer0)
[](https://www.npmjs.com/package/@aegisjsproject/aegis-md)


[](https://www.npmjs.com/package/@aegisjsproject/aegis-md)
[](https://github.com/AegisJSProoject)


[](https://twitter.com/shgysk8zer0)
[](https://liberapay.com/shgysk8zer0/donate "Donate using Liberapay")
- - -
- [Code of Conduct](./.github/CODE_OF_CONDUCT.md)
- [Contributing](./.github/CONTRIBUTING.md)
## Adding language support
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:
### Registering from Static Imports
**Note**: All languages provided by highlight.js may be found at [`/es/languages/${lang}.min.js`](https://unpkg.com/browse/@highlightjs/cdn-assets/es/languages/).
```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 });
```