Mat,

I support your desire for a solution. As Mario indicated we have being 
looking at a method markup method to force a line into a paragraph, the old 
chestnut, however I believe it indicates a possible solution.

When it comes to classes we may have an answer, but yes I would appreciate 
further custom markup constructor+interpreter,  However what we are working 
on may go a long way.

Many of the wikitext items accept a .classname such as ; : * #
eg
:.classname
*.done List item

As with the paragraph there is no quick and easy way to add css to any 
other wikitext such as simple lines, and a way to force paragraphs <p></p> 
around a set of sentences - If a line is empty, Paragraphs ensure one, not 
more blank line(s) between paragraphs. 

To me this is a clear gap in the css address-ability of wikitext, including 
lines without wiki text.

Hopefully I and Mario will have a solution soon.

Regards
Tony


On Thursday, 27 August 2020 at 20:50:24 UTC+10 Mat wrote:

> It would be useful if TW could work as a custom markup 
> constructor+interpretator.
>
> I.e that it featured "*potential* wikitext markdown" that people can 
> CSS-style freely. For example, we currently have the list elements * and : 
> that give predefined <ul><li> and <dl><dd> with specific styling. It would 
> be neat if e.g § or other characters would trigger custom styling IF the 
> user choses to define such styles. If no style is defined then, I guess, 
> the characters and subsequent content displays as usual.
>
> Notably, HTML has this built in i.e it allows custom tags like 
> <mytag>Lorem ipsum</mytag>, but the requred angle brackets and possibly 
> closing tags make this too verbose. I want a smooth wikitext markdown 
> command.
>
> I identify two "base cases"; one with a opening and a closing mark 
> (compare to a div). And the other as list element marker with only an 
> explicit opening mark and an implied closing mark consisting of newline or 
> similar.
>
> One idea would be to use the aforementioned § character. IF a row is 
> prefixed with § and has a subsequent empty row (or end of tiddler) then it 
> is interpreted as a list element. If the row instead is encapsulated with a 
> § and a suffixing § then it is interpreted as a div. For example the first 
> case could be interpreted as <li class="custom-li"> and the second case as 
> <div class="custom-div">....</div>.
>
> We'd get infinite options if one could use §1, §2, ...
>
> (Possibly the character should trigger more than mere CSS. I would guess 
> pipe characters, when creating wikitext tables, do this, right? In that 
> case, § could trigger some user defined *macro*, perhaps titled § ...or 
> §1, §2... to operate on the text snippet in question.)
>
> Thoughts?
>
> <:-)
>

-- 
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/f6e1e3d3-08ff-4f16-a422-01fb63a1811cn%40googlegroups.com.

Reply via email to