1.0.1 • Published 3 years ago
@arinoto/remarkeded v1.0.1
Inline editor for Markdown.
Usage
main.js replace a node in markdown with contents from STDIN
Options:
  --help      Show help                                                [boolean]
  --version   Show version number                                      [boolean]
  --selector  A CSS-like path selector to the node to replace[string] [required]
  --file      A path of the markdown file                    [string] [required]
  --verbose   Print input document's structure.       [boolean] [default: false]For example
Given this markdown
# Hello 
## One
Lorem ipsum
## Two
```bash
cat 1.txt
```
## Three
worldTo replace the echo "Foo bar" with something different, you can call it as
echo 'cat 2.txt' | remarkeded --selector 'code[lang=sh]' --file readme.mdReferences
List of nodes: https://github.com/syntax-tree/mdast#nodes
List of supported selectors: https://github.com/syntax-tree/unist-util-select#support