</> ConvertAtlas Developer Tools
Bootstrap 5 · Intermediate

Markdown Notes Card

A notes card toggling between edit and rendered preview, via Marked.

Requires Bootstrap 5, Marked. 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">
<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>
<div class="card border-0 shadow-sm" style="max-width:380px"><div class="card-body"><div class="d-flex gap-2 mb-2"><button class="btn btn-sm btn-light" id="mnEdit">Edit</button><button class="btn btn-sm btn-light active" id="mnView">Preview</button></div><textarea class="form-control" id="mnArea" rows="4" style="display:none">## Notes
- Buy milk
- **Call** the bank</textarea><div class="border rounded p-2 small" id="mnOut" style="min-height:90px"></div></div></div>
var area=document.getElementById('mnArea'),out=document.getElementById('mnOut');
function render(){out.innerHTML=marked.parse(area.value)}
document.getElementById('mnEdit').onclick=function(){area.style.display='block';out.style.display='none'};
document.getElementById('mnView').onclick=function(){render();area.style.display='none';out.style.display='block'};
render();
Free to use.This component uses Bootstrap 5, Marked (linked above). Copy any file, or download a ready-to-open .html page with the CDN links already included.