markdown-document

Adds tools to make working with long form markdown documents in Atom easier.

kcyarn

5,823

21

0.3.0

MIT

GitHub

Markdown-Document Package

This package will not work for Atom versions 1.13 and higher. It is deprecated in favor of document-outline.

Adds tools to make working with long form markdown documents in Atom easier.

Markdown Document Outline View

Features

Customizable Markdown Source List

Outline View (ctrl-alt-o)

Note: Although markdown does not require sequential headers, the outline generator needs at least one first level header. After that, non-sequential headers will be moved up to the next closest level.

Autosave

Continue writing content here. See if it still fires.

At present, autosave is only available for markdown files when the outline view is visible. It is not available for non-markdown files. Autosave may become its own package in the future or become available outside the outline view. Please weigh in on Issue 1.

You can find and trigger features in:

Installation

When autosave is enabled, the whitespace package automatically deletes the return after headers while you're typing. Markdown-document uses remarkable and a minor fork of markdown-toc. Remarkable is designed for the commonmark syntax, not gfm. It seems to work fine with gfm, but it hasn't been extensively tested.

The whitespace package does not play well with language-markdown. See Issue 115 for further information and a possible workaround. I personally dislike the whitespace package and prefer everything remain exactly as I typed it so it's disabled on my machine. Please let me know should this be an issue.

Setup

Go to Settings (ctrl-,) -> Packages -> Markdown Document -> Settings.

Check Enable Autosave to enable the autosaver.