Skip to content

rokudogobu/qlcmark-gfm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

qlcmark-gfm

QuickLook Plugin for CommonMark documents by using cmark-gfm.

screenshot

Supported Features

  • GitHub Flavored Markdown extensions
  • Dark Mode
  • Unicode encoding (UTF-8, UTF-16BE, UTF-16LE, UTF-32BE and UTF-32LE) detection by BOM
  • Japanese encoding (Shift-JIS, EUC-JP and ISO-2022-JP) detection by Brute forcing

Installation

To install qlcmark-gfm, please copy or move qlcmark-gfm.qlgenerator to ~/Library/QuickLook and execute following command in Terminal.app.

$ qlmanage -r

If you want to build from source, please make sure cmake is installed to your mac, and then follow the steps below.

$ git clone https://github.com/rokudogobu/qlcmark-gfm.git
$ cd qlcmark-gfm
$ bash build.bash

Please build at a directory which is NOT synced with iCloud, otherwise a codesign process may fail.

Setting Preferences

You can change color mode and font-size by executing following command:

$ defaults write io.github.rokudogobu.qlcmark-gfm <key> -string <value>

The keys and values are listed below:

key default possible values
mode auto light, dark or others ( interpreted as auto )
font-size 14px any CSS values for font-size property

License

Copyright (c) 2019 rokudogobu.
Licensed under the Apache License, Version 2.0.
See LICENSE for details.