TiddlyWiki / TiddlyWiki5

A self-contained JavaScript wiki for the browser, Node.js, AWS Lambda etc.
https://tiddlywiki.com/
Other
8.04k stars 1.19k forks source link

Add wikitext for default highlight: @@highlight@@ #2228

Closed twMat closed 11 months ago

twMat commented 8 years ago

@@background:yellow; content@@ works but there is no default option without parameters.

I propose @@content@@ as a quick way to get the typical faint(!) yellow background on the content.

tobibeer commented 8 years ago

I'd agree that such a basic highlight is useful.

twMat commented 4 years ago

bump

linonetwo commented 4 years ago

So you mean transform @@background:yellow; content@@ to a span tag, and @@content@@ to mark tag.

pmario commented 4 years ago

@linonetwo ... @@ is about Styles and classes ... imo not the same as <mark>

linonetwo commented 4 years ago

You are right, @@ only add style or class to the outer element, not adding a warper element.

Maybe @@highlight@@ can add a special highlight class, that can be config in the palette.

pmario commented 2 years ago

I think the OT is actionable and imo makes sense, so I'll bump the issue

Jermolene commented 2 years ago

It's a good idea. I don't think there are any backwards compatibility considerations because @@foobar@@ at present doesn't do anything useful.

twMat commented 2 years ago

So no misunderstanding: I'm hoping it will work also for @@strings with spaces@@

pmario commented 2 years ago

So no misunderstanding: I'm hoping it will work also for @@strings with spaces@@

Yes is will. It's like any other "emphasis" rule we have eg: bold

pmario commented 11 months ago

@twMat -- IMO this one can be closed -- The default colour has been implemented some time ago. See: https://tiddlywiki.com/#Formatting%20in%20WikiText

linonetwo commented 11 months ago

I see, it generates <span class="tc-inline-style">highlight</span> where tc-inline-style can be moded.

Jermolene commented 11 months ago

Thank you @pmario