Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

markblocks

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

markblocks

A simple script that easily adds human-readable block ids to Markdown documents.

  • 0.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

oclif-hello-world

oclif example Hello World CLI

oclif CircleCI GitHub license

Usage

$ npm install -g markblocks
$ markblocks COMMAND
running command...
$ markblocks (--version)
markblocks/0.1.2 darwin-arm64 node-v20.5.1
$ markblocks --help [COMMAND]
USAGE
  $ markblocks COMMAND
...

Commands

markblocks INPUTFILE [OUTFILE]

Adds adds human-readable block ids to every paragraph in a Markdown document.

USAGE
  $ markblocks  INPUTFILE [OUTFILE] [-f] [-h] [-r] [-s]

ARGUMENTS
  INPUTFILE  The path to the markdown document.
  OUTFILE    The output file for the generated output. If not provided, markblocks will not run unless the --force flag
             is provided.

FLAGS
  -f, --force           Whether to add block ids to an existing document in the event an outFile is not provided.
  -h, --includeHeaders  By default, blockifier will not turn markdown headers into blocks. Including this option will
                        generate block ids for headers as well.
  -r, --random          Whether to use random or human-readable block ids. If enabled, the block ids will be random.
  -s, --sequential      By default, blockifier will try to generate block ids based on the document's header structure
                        (e.g. 1.0.0, 1.0.1, etc.). This option will generate ids purely based on each paragraph break.
                        No effect if --random is enabled.

DESCRIPTION
  Adds adds human-readable block ids to every paragraph in a Markdown document.

EXAMPLES
  Add block ids to an existing document.

    $ markblocks input.md output.md

  Add block ids to an existing document.

    $ markblocks input.md -f

See code: dist/index.ts

markblocks help [COMMANDS]

Display help for markblocks.

USAGE
  $ markblocks help [COMMANDS] [-n]

ARGUMENTS
  COMMANDS  Command to show help for.

FLAGS
  -n, --nested-commands  Include all nested commands in the output.

DESCRIPTION
  Display help for markblocks.

See code: @oclif/plugin-help

Keywords

FAQs

Package last updated on 26 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc