Skip to content

[Idea] Allow [x] Checkbox Syntax for TW Wikitext #9326

@pmario

Description

@pmario

another example is a checkbox widget that has [x] syntax

That is something that I have wanted to have for a long time, and would certainly be worth thinking about again.

On the surface it is fairly straightforward: modify the parser to record the source tiddler and offset of every widget. However, one aspect that is tricky is that the parser parses text strings, not tiddlers. By the time the parser is invoked there is no link between the source tiddler and the corresponding widget.

So, I think we might have to introduce a new interface to the parser that accepts a tiddler title rather than a text string, and thus can fill in the link between widgets and the corresponding offset within the source tiddler. We would then have to go through all the invocations of the parser and where necessary refactor them to use the new interface.

Originally posted by @Jermolene in #9112

Metadata

Metadata

Assignees

No one assigned

    Labels

    newfeatureNew functionality that does not presently exist

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions