blablanumerodeux / StackeditExtractor

Converts a whole StackEdit workspace backup from json to separated md files.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

StackEdit Extractor

Converts a whole StackEdit workspace backup from json to separated md files.

Prepare your export

  1. Put your json extraction in the source folder
  2. (Optional) Change the following const in the code accordingly:
    • PATH_OUTPUT_FOLDER (default "target/")
    • JSON_INPUT_FILE (default "source/StackEdit workspace.json")
  3. Remove BOM sequence
    Stackedit inserts a BOM sequence on their extract, remove it with dos2unix:
    file -i out.file
    sudo pacman -Sy dos2unix
    dos2unix source/StackEdit\ workspace.json
    Removing a BOM sequence

Run it with GO

go run StackEditExtractor.go

Run it with bash

./StackEditExtractor

About

Converts a whole StackEdit workspace backup from json to separated md files.


Languages

Language:Go 100.0%