Skip to content

Replace float-asides with Sidenotes - #68

Merged
janezd merged 1 commit into
biolab:masterfrom
janezd:replace-float-aside-w-sidenote
Sep 26, 2025
Merged

janezd merged 1 commit into
biolab:masterfrom
janezd:replace-float-aside-w-sidenote

Conversation

@janezd

@janezd janezd commented Sep 15, 2025 •

Copy link
Copy Markdown
Contributor

This PR replaces float-asides with Sidenote components rather than adding an element with CSS, as is done for other <!!! marks. With this, float-asides (turned into Sidenotes) will rearrange to not overlap.

This adds a rule for float-aside use: the content that is moved aside must end with a blank line. Previously, some float-asides were followed with a <Question> or code block without any blank line.

Must be merged after https://github.com/biolab/notes-books/pull/14, which fixes uses that are no longer permissible.

Merge if we decide such preprocessing is safe. Otherwise, we'd probably need to use Sidenotes instead float-asides.

@janezd janezd changed the title Replace float aside w sidenote Replace float-asides with Sidenotes Sep 16, 2025
@janezd
janezd force-pushed the replace-float-aside-w-sidenote branch from 5614cef to 3f26001 Compare September 16, 2025 18:31
@janezd
janezd marked this pull request as ready for review September 26, 2025 14:58
@janezd
janezd merged commit 4fea2cb into biolab:master Sep 26, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant