17

Another stupid markdown previewer based on Node.js

 4 years ago
source link: https://github.com/svrxjs/svrx-plugin-markdown
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

svrx-plugin-markdown

svrx plugin for markdown, help us editing markdown like a ninja .

Usage

please confirm you have installed svrx already

npm i @svrx/cli -g

Feature

  • Don't rely on special editors.
  • Hot reload when file changes (not full render)
  • Auto jump to the file you are editing
  • Auto scroll to the area you are editing
  • Two builtin theme light and dark , follow github markdown syntax highlighter

Q3yyMjf.jpg!web

Via CLI

svrx --markdown

or

svrx -p markdown?theme=light

Via API

const svrx = require('@svrx/svrx');

svrx({ plugins: [ 'markdown' ] }).start();

Options

  • theme: string , default is dark , you can also use light to switch light mode.
  • auto: boolean , auto jump to the markdown you are editing. default is true

License

MIT


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK