Skip to content

feature: first-line-indent for paragraphs. #417

@chaulkie

Description

@chaulkie

Is your feature request related to a problem? Please describe.

A somewhat obscure, probably low-priority, and possibly unwanted feature idea. I sometimes write prose in nvim+markdown, and in such a case I like nvim to replicate some properties of standard word processors.

One thing I have been missing (from any plugin, not just this one) is that are paragraphs demarcated by first-line-indentation. For example, instead of:

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla congue, enim id
accumsan feugiat, ex dolor scelerisque risus, sagittis gravida nisi eros eu
ligula. Nunc laoreet arcu ac massa dapibus, vel aliquam lacus scelerisque.

Nulla luctus nisi a dolor consequat, nec maximus justo facilisis. Sed at lorem
in eros sollicitudin rhoncus nec in est. Vestibulum tincidunt ante purus, id
aliquet arcu eleifend sed. Donec.

It would show:

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla congue, enim id
accumsan feugiat, ex dolor scelerisque risus, sagittis gravida nisi eros eu
ligula. Nunc laoreet arcu ac massa dapibus, vel aliquam lacus scelerisque.
    Nulla luctus nisi a dolor consequat, nec maximus justo facilisis. Sed at
lorem in eros sollicitudin rhoncus nec in est. Vestibulum tincidunt ante purus,
id aliquet arcu eleifend sed. Donec.

Describe the solution you'd like

The underlying markdown paragraphs should remain standard; without the indents and separated by empty lines.

In my mind, the render-markdown plugin would conceal the empty line, and add spacing on the first line of each paragraph. (Perhaps with the option to have just one or the other.)

Sounds simple in concept but there might be complications when it comes to how this functionality interacts with other elements like lists.

Describe alternatives you've considered

Perhaps this could be formatter functionality. I don't know of any formatters that can do this however, and this approach would result in non-standard markdown syntax.

The other solution is just to make do with a previewer plugin.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions