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

markfound

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

markfound

Index a nested directory of markdown files for live preview

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

markfound

Build Status

Index a nested directory of markdown files for live preview:

  • configure the base-path and Linux-find patterns for include/exclude
  • styled for GitHub readme.md with option to add custom css
  • live refresh automatically updates the preview as you edit your markdown

install globally and run

$ npm install -g markfound            # might need to prefix with sudo

$ cd directory/containing/markdown/files
$ markfound

then navigate to http://localhost:4500 to see the index of markdown files:

index screenshot

Follow a link for a preview which automatically updates as you edit the markdown:

index screenshot

configure

On its first run markfound copies the default configuration file to $XDG_CONFIG_HOME/markfound.conf which defaults to $HOME/.config/markfound.conf. This is a leanconf file with the following settings:

  • basePath: - (required) path to the directory containing the markdown files. Set to an absolute path to let markfound be run from anywhere. Default is the current directory.

  • names - (required) a list of one or more wildcard patterns of form *.ext where ext is the extension to include. Place each pattern on its own line indented to the same level.

  • excludes - (optional) a list of exclusion patterns passed to the Linux find -path option. Place each path on its own line indented to the same level.

  • stylusPath: - (optional) path to a stylus file containing custom styling. For example, to increase the spacing between index list items and add borders around code elements, create a file markfound.styl alongside markfound.conf with this content:

    .index
      li
        margin 1em
    
    .markdown-body
      code
        border solid grey 1px
    

    and add setting stylusPath: ./markfound.styl to markfound.conf.

options

$ markfound --help
Usage: markfound [Options]

Options:

  -h, --help                output usage information
  -V, --version             output the version number
  -c, --config-path [path]  path to configuration file (default:~/.config/markfound.conf)
  -p, --port [port]         listening port (default:4500)
  -v, --verbose             emit detailed trace for debugging

developer build and run

$ git clone --branch=dev https://github.com/dizzib/markfound.git
$ cd markfound
$ npm install     # install dependencies
$ npm test        # build all and run tests
$ npm start       # start the task runner

license

MIT

Keywords

FAQs

Package last updated on 29 Jul 2015

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