Skip to content

azu/opml-to-markdown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

opml-to-markdown

Convert OPML(Outline) to Markdown

Use Case

Installation

npm install opml-to-markdown -g

Usage

$ 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

Custom output markdown

You have to implement building module.

$ opml-to-markdown -e test/fixtures/header-list-note/test.opml --require lib/build-slide-markdown.js

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

License

MIT

About

[node.js]Convert OPML(Outline) to Markdown

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published