How do I modify the wikitex syntax for definitions (semicolon) ?

78 views
Skip to first unread message

pedruchini

unread,
Aug 30, 2016, 10:23:57 AM8/30/16
to TiddlyWiki
Would it be possible to modify the semicolon markup (for definitions) so that it renders in normal letters insted of bold letter?

When you write this:

;term
:definition

what you get is this:

<dt><b>term</b></dt>
<dd>definition</dd>

But what I want is this:

<dt>term</dt>
<dd>definition</dd>

I would like to change the behavior of the semicolon for my whole TW, so I suppose I have to modify a core tiddler.

Thanks in advance.

Ton Gerner

unread,
Aug 30, 2016, 12:43:41 PM8/30/16
to TiddlyWiki
Hi pedruchini,

$:/themes/tiddlywiki/vanilla/base contains:

dl dt { font-weight: bold; margin-top: 6px; }

To overwrite it:

Create a tiddler tagged with $:/tags/Stylesheet which contains:

dl dt { font-weight: normal; }

Hope that helps.

Cheers,

Ton

pedruchini

unread,
Aug 30, 2016, 8:32:50 PM8/30/16
to TiddlyWiki
Thank you, Ton.

Your guides are very useful: http://tongerner.tiddlyspot.com

Now I will try to modify other elements, just for fun.

Cheers,

Pedro

PMario

unread,
Aug 31, 2016, 7:02:26 AM8/31/16
to TiddlyWiki
On Tuesday, August 30, 2016 at 6:43:41 PM UTC+2, Ton Gerner wrote:
Create a tiddler tagged with $:/tags/Stylesheet which contains:

dl dt { font-weight: normal; }


It may not be obvious. .. Please do _not_ change the core stylesheet. It may cause problems in the future.

Ceate a new tiddler eg: myStyles and tag it: $:/tags/Stylesheet

Ton's info is correct, but could be interpreted as changing the core settings.

-m
Reply all
Reply to author
Forward
0 new messages