Skip to content

Add support for style block with more than 3 fence character#13147

Open
gagahpangeran wants to merge 3 commits into
ppy:masterfrom
gagahpangeran:custom-container-fix
Open

Add support for style block with more than 3 fence character#13147
gagahpangeran wants to merge 3 commits into
ppy:masterfrom
gagahpangeran:custom-container-fix

Conversation

@gagahpangeran

@gagahpangeran gagahpangeran commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

I noticed this comment while discussing something is #osu-wiki discord.

// TODO: closing block length is supposed to match opening block length which can be > 3;
// what's supposed to happen when they don't match currently is undefined.
if ($currentLine === ':::') {
return BlockContinue::finished();
}

Now style block can use more than 3 fence character and also automatically can support nested style block by using different length of fence chars.

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