Convert OPML(Outline) to Markdown
Use Case
- OmniOutliner's opml -> Markdown -> cleaver's slide.
npm install opml-to-markdown -g
$ opml-to-markdown -h
Usage: cmd [options]
-h, --help displays help
-e, --entry String opml file path
-o, --outfile String output to file path
--require String builder module(like build-slide-markdown.js) path
$ opml-to-markdown test/fixtures/header-list-note/test.opml
<?xml version="1.0" encoding="utf-8"?>
<opml version="1.0">
<head>
<title>title</title>
<expansionState>0,2</expansionState>
</head>
<body>
<outline text="H1">
<outline text="H2 Text"/>
<outline text="H2">
<outline text="text"/>
</outline>
</outline>
<outline text="H1 text" _note="note\nnote"/>
</body>
</opml>
to
title: title
--
# H1
- H2 Text
- H2
- text
--
# H1 text
note
note
You have to implement building module.
$ opml-to-markdown -e test/fixtures/header-list-note/test.opml --require lib/build-slide-markdown.js
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
MIT