</> ConvertAtlas Developer Tools
Bootstrap 5 · Advanced

Docs Block (MD + Code)

Rendered markdown docs with highlighted code, via Marked + Prism.

Requires Bootstrap 5, Marked, Prism. Add the CDN tags below to your page (styles in <head>, scripts before </body>). The downloaded file already includes them.
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.29.0/themes/prism-tomorrow.min.css">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/marked@12.0.0/marked.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.29.0/prism.min.js"></script>
<div class="card border-0 shadow-sm" style="width:400px;max-width:100%"><div class="card-body"><div id="docOut" class="small"></div></div></div>
var md='## Quick start\n\nInstall the package:\n\n```\nnpm install awesome-ui\n```\n\nThen import and use it.';
marked.setOptions({highlight:function(code){return code}});
document.getElementById('docOut').innerHTML=marked.parse(md);
Prism.highlightAll();
Free to use.This component uses Bootstrap 5, Marked, Prism (linked above). Copy any file, or download a ready-to-open .html page with the CDN links already included.