Skip to content

wickysi/wi-opml-to-md

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wi-opml-to-md

opml to md

Installation

npm install wi-opml-to-md -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
// 直接在命令行输出md文本
$ opml-to-markdown test.opml

// 输出md文件
$ opml-to-markdown test.opml -o test.md
<?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

Releases

No releases published

Packages

No packages published