Extend parsing rules to accept • and o characters as list

Dear community,

Would anyone have a solution to extend tiddlywiki parser such as to interpret "• " at the beginning of a line as a level 1 list (equivalent to a single "* ") and "o " at the beginning of a line as a level 2 list (equivalent to “**”) ?
These two characters are followed by a tab.

Rational : regularly copying-pasting text extracts from word and outlook where lists are using these characters.

Best regards,

Eskha

idk tbh

but my initial thought is
create an input
that will replace the strings
(presumably via applying a filter?)

could be an alternative to
modding TW
(presumably via a plugin )

I have done something very close to this but I am not available for the rest of the day. Keep in mind that it will need to add to/customise the core a little.

But @Eskha can you explain why you want this? If this is in content you imported, Perhaps its better to search and replace these with the correct wikitext?

Hi @Eskha

Would an edit-mode tool like the one I shared for Excel tables work for you?
Please have a look, and if it suits you we could try to adapt it for Word snippets import…

Fred

Thanks for your answers.

@TW_Tones : The context is copy / pasting from other applications. I could indeed use a search and replace in an intermediate tool (notepad++ for instance) but would like to bypass this step. Having to modify the core a little could be ok (especially if the solution could be to have a modified version of $:/core/modules/parsers/wikiparser/rules/list.js

@tw-FRed : Yes this could be a solution.

Sure I will find that info within a few hours, however there is no need to use intermediate tools for this this “reformatting” search an replace can be done in tiddlywiki, with at most a click of a button once set up. This way no extensions or core overwrites are needed.

Do you really want to use other multiple bullet symbols forever?, rather than a one off conversion to standard bullets ?

  • If the resulting content is moved to another wiki it will break unless you again apply the fixes.