On Monday, September 2, 2019 at 11:18:09 AM UTC+2, PMario wrote:

So I'd like to rephrase it, how I see it: --- I'm not sure, if that is what 
> you wanted. ... It's what I see. 
>
>  1) "*How can we achieve text indentation*" similar to UL or OL, without 
> the markers. 
>  2) "*How can we improve importing text from other sources*" ... IMO 
> that's a completely different thing and it shouldn't be mixed. 
>
> ad 1)
>
> There is a limited amount of "text content" html tags 
> <https://developer.mozilla.org/en-US/docs/Web/HTML/Element#Text_content>. 
> Some of them do include indentation by default. Most of them don't. 
> IMO candidates are: 
>
>  - OL
>  - UL
>  - DL
>  - P 
>

As MDN indicates OL, UL and DL should not be misused to create indentation. 
... I think there is 1 exception for the UL element. Where we still use it 
as a list, but without the bullet at the beginning. ... Sometimes the 
bullet just isn't the right thing to show, so it should be hidden. 

I think it's the case, when an indented paragraph is a description of the 
parent element. Bullets just don't fit there. 

We have a possibility to assign user defined classes to UL. like: 

*.testClass level 1
** level 2

Which gives us the following HTML code, where the class is assigned to the 
<li> element.

<ul>
  <li class="testClass">level 1
    <ul>
      <li>level 2</li>
    </ul>
  </li>
</ul>


Which looks a bit strange but is right 
<https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ul#Nesting_a_list>. 


What we probably would like to get is 

<ul class="testClass">
  <li>level 1
    <ul>
      <li>level 2</li>
    </ul>
  </li>
</ul>


And define the CSS ul.testClass * { list-style-type: none;}

So a wikitext syntax could look like 

*^testClass level 1
** level 2 

So the *^ indicator would be only needed once. I personally would go with 

*^_ level 1 

This would be a new indicator for every element, that allows custom classes 
AND where a parent element exists. 

 - I'm not sure if the parser can handle that. 
 - I'm not sure if this can be implemented in a consistent way. Especially:

* level 1
**^x level 2 

doesn't make sense, since it is the same as 

*.x level 1   ... Which is much more readable. 

So this would be my proposal for ULs without bullets. ... Which should NOT 
be used for indented paragraphs. P-tags should be used there. 

have fun!
mario











-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" 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/tiddlywikidev/3092b7df-b510-4b5f-bd14-33115a49334f%40googlegroups.com.

Reply via email to