myWord
myWord copied to clipboard
Support YAML
We write faster in YAML format, can you support this format?
andytruong,
I've played with myword a little and if you just want a work around this'll work. Here's some myword-ready yaml.
authorname: "Elmer Fudd"
title: "Kill the Rabbit"
when: Thu, 16 Apr 2015 15:26:39 -0400
flMarkdown: true
subs:
- |
Your markdown here. Note that lists will render better when the items are separated by blank lines.
- bugs
- daffy
- porky
Convert the yaml to json with this one liner (compliments of http://www.commandlinefu.com/commands/view/12218/convert-yaml-to-json).
python -c 'import sys, yaml, json; json.dump(yaml.load(sys.stdin), sys.stdout, indent=4)' < file.yaml > file.json
Scripting this with bash is very simple and works for me, but I bet you're thinking of a javascript based solution. yaml.org links to https://github.com/nodeca/js-yaml .