MCPcopy Index your code
hub / github.com/hackmdio/codimd / exportToRawHTML

Function exportToRawHTML

public/js/extra.js:851–860  ·  view source on GitHub ↗
(view)

Source from the content-addressed store, hash-verified

849}
850
851export function exportToRawHTML (view) {
852 const filename = `${renderFilename(ui.area.markdown)}.html`
853 const src = generateCleanHTML(view)
854 $(src).find('a.anchor').remove()
855 const html = src[0].outerHTML
856 const blob = new Blob([html], {
857 type: 'text/html;charset=utf-8'
858 })
859 saveAs(blob, filename, true)
860}
861
862// extract markdown body to html and compile to template
863export function exportToHTML (view) {

Callers 1

index.jsFile · 0.90

Calls 3

renderFilenameFunction · 0.85
generateCleanHTMLFunction · 0.85
removeMethod · 0.80

Tested by

no test coverage detected