mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-05-03 20:46:44 +00:00
Added support for style blocks
This commit is contained in:
21
tw5.com/tiddlers/wikitextrules/StyleBlockWikiText.tid
Normal file
21
tw5.com/tiddlers/wikitextrules/StyleBlockWikiText.tid
Normal file
@@ -0,0 +1,21 @@
|
||||
title: StyleBlockWikiText
|
||||
|
||||
This syntax enables you to assign arbitrary styles to generated elements. For example:
|
||||
|
||||
{{{
|
||||
@@color:#f00
|
||||
This is in red!
|
||||
@@
|
||||
}}}
|
||||
|
||||
Generates the results:
|
||||
|
||||
@@color:#f00
|
||||
This is in red!
|
||||
@@
|
||||
|
||||
The HTML looks like this:
|
||||
|
||||
{{{
|
||||
<p style="color:rgb(255, 0, 0);">This is in red!</p>
|
||||
}}}
|
||||
Reference in New Issue
Block a user