This Python script generates a novelWriter project from a work in progress written with any text editor or Markdown word processor.
It converts three levels of the novel structure: Parts, chapters, and scenes.
- Python version 3.6+.
https://raw.githubusercontent.com/peter88213/md2nw/main/md2nw.py
You can either
- launch the program on the command line passing the .md file as an argument, or
- launch the program via a batch file.
usage: md2nw.py [-h] [--silent] Sourcefile
Sourcefile
The path of the .md file.
-h, --help
show this help message and exit
--silent
suppress error messages and the request to confirm overwriting
Double line breaks are considered paragraph breaks, as is the Markdown standard supported by novelWriter.
# One hash character at the start of the .
## Two hash characters at the start of the line.
### Three hash characters at the start of the line.
Text, if any, is considered as the scene title.
NOTE: On all levels, you can add an one-line synopsis to the heading, divided by |
.
_single underscores_
Note : A _
surrounded with spaces will be treated as a literal underscore.
**double asterisks**
~~double swung dashes~~
- Frederik Lundh published the xml pretty print algorithm.
md2nw is distributed under the MIT License.
Create a cross reference table with novelWriter metadata.
Generate a novelWriter project from a FreeMind/Freeplane outline.
Generate a novelWriter project from a work in progress written with e.g. LibreOffice.
Converter between yWriter and novelWriter.