https://github.com/alswl/yuque2markdown
yuque2markdown convert your Yuque export file(.lakebook) to markdown files
https://github.com/alswl/yuque2markdown
yuque
Last synced: 5 months ago
JSON representation
yuque2markdown convert your Yuque export file(.lakebook) to markdown files
- Host: GitHub
- URL: https://github.com/alswl/yuque2markdown
- Owner: alswl
- Created: 2023-02-06T16:48:56.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-11-14T09:06:27.000Z (over 1 year ago)
- Last Synced: 2025-10-10T22:42:48.002Z (10 months ago)
- Topics: yuque
- Language: Python
- Homepage:
- Size: 15.6 KB
- Stars: 22
- Watchers: 1
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```bash
# 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
```bash
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:
```shell
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
```
## Contributors