Skip to content

Write csdn article in markdown format with local editor such as Vim, Visual Code, Emacs in the way of WYSIWYG

Notifications You must be signed in to change notification settings

EsanLe/sync-csdn-article-markdown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sync-csdn-article-markdown

Features:

  • Write csdn article in markdown format with local editor such as Vim, Visual Code, Emacs
    • Currently local filename (without .md extension) must equals to remote article name, which is hard coded, so that the tool can match the remote article
  • Preview using csdn offical previewer on the fly
  • Custom dark theme (currently hard coded)

Screenshot:

install

install from github repo

git clone 
cd sync-csdn-article-markdown
npm install -g

install from npm offical repo (todo)

npm install -g sync-csdn-article-markdown

usage

enable markdown format

  • click "Markdown编辑器" to enable markdown format as default

  • create a article which title is exact match the local file (without .md extension)

  • create a local .md file with name <article-name>.md

login csdn only for once

terminal command:

sync-csdn-article-markdown <article-name>.md

login csdn with any method

terminal stdout:

Waiting for 3s to login
Session expired, login to csdn.net
You have logged in csdn.net, please retry

sync local file with remote previewer

terminal command:

sync-csdn-article-markdown <article-name>.md

save local file and preview using remote previewer

troubleshooting

after upgrade chrome

reinstall the package or followings:

chromedriver
selenium-webdriver

clear chrome data

rm -rf ~/.sync-csdn-article-markdown

About

Write csdn article in markdown format with local editor such as Vim, Visual Code, Emacs in the way of WYSIWYG

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published