markdown文件转HTML,仅支持从外部调用
markdeep官网- @echo off
-
- if "%~1"=="" (
- echo 请输入文件名
- goto:eof
- )
-
- if not "%~x1"==".md" (
- echo 仅支持markdown文件
- goto:eof
- )
-
- if not exist %~1 (
- echo 文件不存在
- goto:eof
- )
-
- copy "%~1" "%~dpn1.html" >nul
-
- echo ^<!-- Markdeep: --^>^<style class="fallback"^>body{visibility:hidden;white-space:pre;font-family:monospace}^</style^>^<script src="markdeep.min.js" charset="utf-8"^>^</script^>^<script src="https://casual-effects.com/markdeep/latest/markdeep.min.js" charset="utf-8"^>^</script^>^<script^>window.alreadyProcessedMarkdeep^|^|^(document.body.style.visibility="visible"^)^</script^> >> "%~dpn1.html"
-
- echo 已完成
复制代码
|