mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-09-07 13:06:47 +00:00
06a0d21734
Fixes #82. The old behaviour was to parse the content of a widget or html element in block mode if the opening tag was followed by a line break. The new behaviour requires two line breaks. This makes it possible to include linebreaks more liberally within wikitext, although care must still be taken to only use double line breaks when the block mode behaviour is desired. The code change here is very simple, just a single line change in html.js. Most of the other changes are to convert various single line breaks into double line breaks.
18 lines
651 B
Plaintext
18 lines
651 B
Plaintext
title: $:/core/ui/TagTemplate
|
|
|
|
\define tag-styles()
|
|
background-color:$(backgroundColor)$;
|
|
\end
|
|
<span class="tw-tag-list-item">
|
|
<$set name="backgroundColor" value={{!!color}}>
|
|
<$button popup=<<qualify "$:/state/tagpopup">> class="btn-invisible tw-tag-label" style=<<tag-styles>>>
|
|
<$transclude tiddler={{!!icon}}/> <$view field="title" format="text" />
|
|
</$button>
|
|
</$set>
|
|
<$reveal state=<<qualify "$:/state/tagpopup">> type="popup" position="below" animate="yes"><div class="tw-drop-down"><$transclude tiddler="$:/core/ui/ListItemTemplate"/>
|
|
<hr>
|
|
<$list filter="[is[current]tagging[]]" template="$:/core/ui/ListItemTemplate"/>
|
|
</div>
|
|
</$reveal>
|
|
</span>
|