1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-03-09 21:18:11 +00:00

add class handling for toc-override

This commit is contained in:
pmario 2024-02-04 22:29:07 +01:00
parent e884c1178c
commit 8e1e875ebf

View File

@ -20,9 +20,10 @@ tags: $:/tags/Macro
<!-- helper functions for li class definitions -->
\function tf.toc-itemClassFilter() [<selectedTiddler>get[text]match<currentTiddler>then[toc-item-selected]else[toc-item]]
\function tf.toc-includedClass() [subfilter<tf.toc-include>match<currentTiddler>then[toc-item-included]]
\function tf.toc-hideClass() [<tf.toc-hide>!is[blank]then[toc-item-excluded]]
\function tf.toc-overrideClass() [subfilter<tf.toc-override>match<currentTiddler>then[toc-item-override]]
\function tf.toc-hideClass() [<tf.toc-hide>!is[blank]then[toc-item-hide]]
<!-- join the CSS definitions from above -->
\function tf.toc-itemClass() [<tf.toc-itemClassFilter>] [<tf.toc-includedClass>] [<tf.toc-hideClass>] +[join[ ]]
\function tf.toc-itemClass() [<tf.toc-itemClassFilter>] [<tf.toc-includedClass>] [<tf.toc-overrideClass>] [<tf.toc-hideClass>] +[join[ ]]
<!-- the following 3 functions need to use <currentTiddler> -->
\function tf.toc-getHideText() [<currentTiddler>get[toc-hide]]