@arinoto/remarkeded
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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
```sh
cat 1.txt
```

## Three
world

To replace the echo "Foo bar" with something different, you can call it as

echo 'cat 2.txt' | remarkeded --selector 'code[lang=sh]' --file readme.md

References

List of nodes: https://github.com/syntax-tree/mdast#nodes

List of supported selectors: https://github.com/syntax-tree/unist-util-select#support

Readme

Keywords

none

Package Sidebar

Install

npm i @arinoto/remarkeded

Weekly Downloads

1

Version

1.0.1

License

LGPL-3.0

Unpacked Size

45.1 kB

Total Files

9

Last publish

Collaborators

  • dw0