Skip to content

hashtags wikirule breaks stylesheets #2192

@tobibeer

Description

@tobibeer

I was about to write a wikirule parser that will do something with a #hashtag, or so I thought.

Turns out, this appears to break about every single stylesheet tiddler or palette being loaded by TiddlyWiki, except those of type text/css, I presume.

How can I possibly cater for a #hashtag wikirule and make sure it never gets applied for tiddlers matching a given filter, e.g. never those tagged $:/tags/Stylesheet, and never to palettes?

Furthermore, I don't see any capability to do:

\rules allow hashtag

...to allow the rule for a given context only, e.g. things within the PageTemplate. Actually, I am not quite sure where stylesheets get loaded at all.

Let's say a Stylesheet retrieves a color from a palette:

{{SomePalette##some-color}}

...or uses the color macro to achieve the same.

How can I ensure it will never use the hashtag wikirule to parse the contents so that the result is never going to be hash-tagified?

Atm I feel like it just isn't possible to separate content (hashtags) from presentation (styles) that way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions