npm install string conststring=require('string')constslugify=s=>string(s).slugify().toString()constmd=require('markdown-it')().use(require('markdown-it-anchor'),{slugify}) Another popular library for this is@sindresorhus/slugify, which have better Unicode support and other cool features: ...
Javascript - How to set click event to all the anchor tags, Add a common class to anchors (technically you can do $('a') but it's not nice) and to the elements they're supposed to show. In this case I used 'to_click' for the first and 'click_content' for the others....
download ) === "string" ) { button.href = canvas.toDataURL(); button.download = filename; // Try to fallback to IE-specific methods. // -- // Credit: https://stackoverflow.com/questions/22665111/download-img-throught-hyperlink-a-in-ie11-using-javascript/22682521 } else ...
Contribute to robertohuertasm/solana-bootcamp-anchor-event-manager development by creating an account on GitHub.