0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

VSCode+Markdown Preview Enhanced: PuppeteerのPDF文字化け対策

Posted at

解決まで結構手間取ったのでメモ。

Windows 10, VSCode 1.94.2, MPE 0.8.14。

Markdown Preview Enhancedのプレビュー画面から右クリック→Export→Chrome(Puppeteer)→PDFで出力したファイルが文字化け(豆腐化)するようになっていたが、

を参考にフォント設定をしたら治った。

  1. VSCodeでCtrl-Shift-Pでコマンドパレットを出し、”Markdown Preview Enhanced: Customize CSS(Global)”を選択。
  2. (ホームディレクトリの)\.crossnote\style.lessが開くので、
  3. 次を追加して保存。
    @media print {
      .markdown-preview.markdown-preview {
          font-family: "Meiryo";
      }
    }
    
    フォントはMS Gothicとかでも良い。
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?