On Thursday, February 27, 2020 at 12:27:36 AM UTC+1, TonyM wrote:

Perhaps you are not interested but It would help me (and I believe others 
> would like it) a lot.
>

I wouldn't discuss it, if I wouldn't be interested. I just need to 
understand it in a broader context. 
 

> But the question is why is the addition of such bespoke markup not 
> possible?
>

It is possible -- and it should create html markup that is in line with the 
html spec. The spec is important for eg: accessibility tools like screen 
readers. So our wikitext should produce output, that doesn't confuse those 
tools. 
 

> , from what I can see programmatically it should be trivial, perhaps even 
> entries in a data tiddler to define them. 
>

Not really trivial. ... The elements you pointed out, are all part of the 
list-parser. So they create 2 elements. 
eg: 
* test ... creates an <ul> wrapper and <li> elements. 
; test ... creates a <dl> wrapper and <dt> elements. 

So if the leading-dot is added, in a naive way it creates nested 
paragraphs, which is outside the html specs. 
I did test it with a <section> 
<https://developer.mozilla.org/en-US/docs/Web/HTML/Element/section> wrapper 
and <p> elements which seems to be OK. 

eg: 

.test 1
.test 2

will give us

<section>
<p>test 1</p>
<p>test 2</p>
</section> 

There may be other possibilities, to add this behaviour, but I didn't think 
about that ... yet. 

-mario

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/79180b8c-21f1-467d-b504-7f39c81a7c83%40googlegroups.com.

Reply via email to