Quiver notes.
A humble Ruby script to convert markdown files toSetup
- Get
quiver_import.rb
- All
.md
files in a directory will be packaged in one Quiver notebook
- Relative paths to images will be respected.
- Code blocks may have no language, or one of these abbreviations. Other languages won't break the import but Quiver won't understand and the note will look truncated/broken until you manually give each of these blocks a valid language.
- Run like this:
ruby quiver_import.rb <directory to export> <path-to-new-notebook>.qvnotebook <'Notebook Name'>
- From within Quiver, select
File > Import Notebook
and select your .qvnotebook directory
Tags and Titles
The script will attempt to parse the title and tags from the first and second lines of the file, respectively.
It expects something like this on the first two lines:
# An h1 for the title!
[bracketed, tags, comma | pipe | or whitespace separated]
If either parse succeeds, the first two lines of the note are omitted from the body of the final quiver note.
There is definitely room for this to be more sophisticated.