Skip to content
Discussion options

You must be logged in to vote

There's already so many ways it can be achieved with custom styles, that I am unsure we need a predefined style here.

Say, add this in your style file:

MyDivider:
  style:
    paragraph:
      after:
        skip: "1cm"
      before:
        skip: "1cm"
      align: "center"

Then:

## Normal divider

Lorem...

---

Lorem...

## Custom-styled div with inside divider

Lorem...

{custom-style="MyDivider"}
:::
---
:::

Lorem...

## Custom-styled divider via symbol shortcut

[^:---divider---:]: {custom-style="MyDivider"}
  :::
  ---
  :::

Lorem...

:---divider---:

Ipsum...

## Custom-styled divider via symbol registration

```=sile-lua
-- Of course one would put that in a class or package id…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Omikhleia
Comment options

@Omikhleia
Comment options

@jodros
Comment options

Answer selected by jodros
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants