Replace custom markdown parser with marked.js v16.2.1
🚀 Major Upgrade: Professional markdown handling with marked.js ✅ Fixed Issues: - No more recursion errors or browser crashes - Proper handling of complex markdown (multiple links per line) - Robust parsing of edge cases and nested formatting 🔧 Implementation: - Added marked.js v16.2.1 via CDN to both HTML pages - Custom renderer preserves button styling (btn-primary) - Smart lead paragraph detection for styling preservation - Intelligent element merging to maintain layout - Removed all buggy custom parsing code (100+ lines) 🎯 New Capabilities: - Multiple buttons per line: [Get Started](link1) [Or tomorrow](link2) - Full CommonMark support (tables, lists, formatting) - Better performance with optimized C-like parsing - Extensible renderer system for future enhancements ✨ User Experience: - Edit forms now handle complex markdown perfectly - Layout and styling fully preserved after saves - No more crashes when editing rich content - Professional markdown processing Ready to test the two-button hero scenario! 🚀
This commit is contained in:
@@ -103,6 +103,7 @@
|
||||
</footer>
|
||||
|
||||
<!-- Insertr JavaScript Library -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/marked@16.2.1/lib/marked.umd.js"></script>
|
||||
<script src="https://unpkg.com/alpinejs@3.x.x/dist/cdn.min.js" defer></script>
|
||||
<script src="insertr/insertr.js"></script>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user