Skip to content

block's sticky should have a direction parameter. #5259

@MangoIV

Description

@MangoIV

Description

It would be cool if instead of taking a bool, sticky had a parameter above or below.

Use Case

For now, sticky is only used with headlines but I would like to use it to avoid a code block to start a new page. i.e. I want to write something like:

This is implemented as follows:

-- some long code block

and what happens a lot in practise is that the "This is implemented as follows" ends a page and then the code block would be on the next page. Ideally I would like to have the paragraph above be able to stick to the code block.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestNew feature or requestlayoutRelated to the layout category, which is about composing, positioning, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions