You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jermolene
changed the title
[BUG] codeblock does not support css classes (codeinline rule used)
[BUG] Code block wikitext syntax does not support css classes
Dec 10, 2024
Hi @rougsig you are correct that the wikitext code block syntax does not allow CSS classes to be specified, and that attempting to do so will trigger the wikitext inline code syntax rule.
There might be confusion because the wikitext code block syntax does permit a language abbreviation to be specified with a very similar syntax:
```css
body {
color: red;
}
```
I would expect that most applications for this could be satisfied with the @@ syntax by adding the appropriate CSS rules to the styles:
@@.myclass
* Block content
* With one assigned class
@@
Describe the bug
Given (read ''' as ```):
Actual:
Expected:
$tw.wiki.parseText
outputs that:TiddlyWiki Configuration
Render was checked on https://tiddlywiki.com/
The text was updated successfully, but these errors were encountered: