This commit is contained in:
2022-11-03 08:50:08 +00:00
parent 98c1793aa9
commit 8fd120aba3
5 changed files with 163 additions and 7 deletions

View File

@@ -87,7 +87,7 @@ const include_plugin = (md, options) => {
const labelStyle = `padding: 0 4px; font-size: 12px; font-weight: bold; color: #ffffff; background: #444444; opacity: .6;`
const fileLabel = `<div style="position:relative; height: 0px;"><div style="position:absolute; top: -10px;${labelStyle}">${includePath}</div></div>\n\n`
const fileLabel = `<div style="position:relative; height: 0px;"><div class="code-file-label" style="position:absolute; top: -10px;${labelStyle}">${includePath}</div></div>\n\n`
const fileExt = includePath.replace(/^.+\./, "")
// replace include by file content