Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eiskalteschatten/export-wordpress-to-markdown
This is a script that imports WordPress posts and their images to Markdown files.
https://github.com/eiskalteschatten/export-wordpress-to-markdown
markdown static-website wordpress
Last synced: 10 days ago
JSON representation
This is a script that imports WordPress posts and their images to Markdown files.
- Host: GitHub
- URL: https://github.com/eiskalteschatten/export-wordpress-to-markdown
- Owner: eiskalteschatten
- Created: 2024-05-30T10:00:58.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-10-18T09:03:16.000Z (about 1 month ago)
- Last Synced: 2024-11-02T15:42:17.023Z (17 days ago)
- Topics: markdown, static-website, wordpress
- Language: JavaScript
- Homepage: https://www.alexseifert.com
- Size: 56.6 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# export-wordpress-to-markdown
This is a script that imports WordPress posts and their images to Markdown files.
It will also export authors, categories and tags to JSON files. These will be linked to the exported posts.
## Usage
The script is easy to use. It requires Node.js 18+ (lower versions might work, but aren't tested).
Once you've cloned the repository, you just need to follow the following steps:
1. Run `npm install`.
2. Update the `apiUrl` variable at the top of `index.mjs` with your the URL of your WordPress API.
3. Run `npm start`.That's it. The script will create a folder called `data` where everything will be saved.
## More Details
See my blog post about this script for more details about my motivations behind it: https://blog.alexseifert.com/2024/05/30/a-script-for-exporting-wordpress-to-markdown/
--
Alex Seifert
https://www.alexseifert.com