如何將自訂 CSS 新增到 markdown 指令的結果?

如何將自訂 CSS 新增到 markdown 指令的結果?

降價新手...

我有一個非常簡單的 markdown 文件,我正在使用 markdown 指令

markdown something.md -o something.html

我可以將自己的css注入到something.html檔案中嗎


我嘗試在 markdown 中將 css 作為原始 html 插入,然後在處理 markdown 時使用 raw-html 標誌,我可能做錯了什麼,因為markdown將 html 視為文字。

這是開始something.md

<html>
 <head>
  <style>
    <link res="stylesheet" type="text/css" href="mystyle.css">
  </style>
</head>
# Testing md
## testing md2
</html>

這是執行的結果markdown -o something.html -f +html something.md

<p><html>
<head></p>
<p></head></p>
<h1>Testing md</h1>
<h2>testing md2</h2>
</html></p>

相關內容