Skip to content

yuque2markdown convert your Yuque export file(.lakebook) to markdown files

Notifications You must be signed in to change notification settings

alswl/yuque2markdown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

yuque-to-markdown

status: it works

Simple convertor, it converts .lakebook to markdown files, and all the outputs is in markdown format. The structure of the output folder is the same as the structure of the book in yuque.

How to install

# Make sure your Python3 is installed
python3 -V

# Clone this repo
git clone git@github.com:alswl/yuque2markdown.git
cd yuque2markdown

# Install packages
pip3 install -r requirements.txt

How to use

  1. Go to your yuque book configuration page, click 设置 button
  2. Click 导出 button, and download the .lakebook file
  3. Using this tool to convert it to markdown files
python3 yuque2markdown.py /path/to/your/lakebook/file.lakefile /path/to/your/output/folder --download-image

# show your converted files
tree /path/to/your/output/folder

CLI Description:

python yuque2markdown.py --help
usage: yuque2markdown.py [-h] [--download-image] lakebook output

Convert Yuque doc to markdown

positional arguments:
  lakebook          Lakebook file
  output            Output directory

options:
  -h, --help        show this help message and exit
  --download-image  Download images to local

TODO

  • Convert HTML to markdown
  • Toc structed convert
  • Fetch images

About

yuque2markdown convert your Yuque export file(.lakebook) to markdown files

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages