Skip to content

Multi-line heading titles extension #38

Description

@link2xt

Tests check that lines immediately after headings are merged into the title:

Emacs Muse produces different output in this case:

<h2>this title</h2>

<p class="first">will merge</p>

<h3>this title</h3>

<p class="first">will merge</p>

<h4>this title</h4>

<p class="first">will merge</p>

<h5>this title</h5>

<p>will merge</p>

<h5>this title</h5>

<p>will merge</p>

I stumbled upon this difference since I just added <br> tags to round-trip test in pandoc and have to deal with line breaks and soft breaks in headers. One solution is to filter them out, another solution is to implement this extension.

This extension makes sense, as it unifies parsing for paragraphs and headers. If you confirm it is not a bug and you are going to leave it this way in Text::Amuse, I will implement it in pandoc. It should probably also be documented in https://amusewiki.org/library/manual

There are Emacs Muse files that will break, quick GitHub search finds examples like this:
https://github.com/happypeter/edocs/blob/d5f2675d387f0cf16f1074d05609d106628acf39/muse/resources.muse#L14

But these users will just keep using Emacs Muse anyway or expect to add some empty lines if they switch to Text::Amuse or pandoc (or hugo+pandoc or whatever), not an issue really.

Activity

  1. changed the title [-]Multi-line header titles extension[/-] [+]Multi-line heading titles extension[/+] on Apr 2, 2018
  2. melmothx commented on Apr 2, 2018

    @melmothx
    Owner

    I confirm this is the intended behavior and I can think about many reasons to keep it this way. I think it's more likely a Emacs Muse bug. Who knows at this point?

  3. link2xt commented on Apr 2, 2018

    @link2xt
    ContributorAuthor

    I don't think it is a bug, because both Outline mode and Org mode (which, like Muse, is influenced by Outline mode) don't merge lines into headings.

    Ok, I will probably implement it for Text::Amuse variant in pandoc and keep Emacs Muse behaviour for Emacs mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions