Skip to content

Introduce "head" node for content before the first sub-section #12

Description

@wldmr

At the moment, the content before the the first subsection is a loose collection of stuff, but it makes sense to group that into its own node.

Not only would this make selecting the whole block easier for editors that allow that sort of thing, it would also be the natural scope for ~ temp variables (which currently I have to determine by iterating children until the next subsection starts).

Example (proposed new (head …) node indicated in comments)

//(head
// title: My cool story
VAR myvar = false
~ temp mytemp = true
It was a dark and stormy knight. -> Knot
//)

== Knot ==
//(head
Hi, I'm the knot content.

* Cool.
* Not cool
//)
= Stitch

Whatever

Activity

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

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions