Reece,

It seems to me odd that you are including markup in the field `"*''tester''`
This not the only thing that is confusing me, why are you wrapping it in 
triple Quotes?

To me unless you want to make use of specific features of wikitext and 
widgets in a field keep the data as clean as possible `tester`

Then the macro would be;
\define fff-display-transclude(field:"")
<$list filter='[is[current]has[$field$]]'>

*''{{!!$field$}}''<br>
</$list>
\end

text
<<fff-display-transclude "test">>
text
Observe the blank line after the list, I believe it is that that makes it 
block instead of inline but its not adequately documented here 
<https://tiddlywiki.com/#ListWidget>

Now you have the simplest way to represent the content, If I understand 
correctly you are unhappy with the space above and below the list item.

This is a result of what the "* means, it gets translated to this at render 
time
<ul>
<li>tester</li>
</ul>

If you remove the markup from the macro ie no ''*'' then this produces a 
similar result

text
<ul>
<li><<fff-display-transclude "test">></li>
<li><<fff-display-transclude "test">></li>
</ul>
text
even between two items there is a lot of space, including on Tiddlywiki.com

The point is you are trying to defeat the default behaviour for UL/LI 
spacing.

<style>
ul {
  display: block;
  list-style-type: disc;
  margin-top: 0em;
  margin-bottom: 0 em;
  margin-left: 0;
  margin-right: 0;
  padding-left: 40px;
}
</style>
text
<ul>
<li><<fff-display-transclude "test">></li>
<li><<fff-display-transclude "test">></li>
</ul>


text

*<<fff-display-transclude "test">>
*<<fff-display-transclude "test">>
text

The above could help you work out what you need to style

Then later create a css class or style and use the HTML alternative
<ul class="classname">
<li>''<<fff-display-transclude "test">>''</li>
</ul>

<ul style="margin-top: 0em; or whatever">
<li>''<<fff-display-transclude "test">>''</li>
</ul>

Regards
Tony

On Sunday, March 8, 2020 at 1:12:02 PM UTC+11, Reece Shaw wrote:
>
> Yes, however there is still too much padding for my liking unfortunately. 
> I'd prefer text text to be completely flush top and bottom, and the applied 
> class doesn't appear to be doing anything. I fixed the double break on the 
> bottom of the transclusion by utilizing the Bootstrap Grid system by rows, 
> but I still run into the issue with the additional space.
>
> Tony, it looks like text formatting markdown will work in the given 
> scenario, but lists, numbered lists and quotes do not when the field value 
> is "*test" or the like. I believe this is because the default transclusion 
> code for {{!!}} is technically inline mode.
>
> I've updated the demo with the different proposed solutions and can't 
> figure out how to trim out the additional space on the top and bottom of 
> the block quote. Any ideas?
>
> http://pharmayap.tiddlyspot.com/
>
> On Saturday, March 7, 2020 at 4:25:16 PM UTC-5, Mat wrote:
>>
>> Did you notice that it I moved the bottom "Text" like so:
>>
>> Text
>> <<fff-display "test">>Text
>>
>> and not
>>
>> Text
>> <<fff-display "test">>
>> Text
>>
>> <:-)
>>
>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/0ad7f73a-190b-44b0-b4e0-4337bbf88092%40googlegroups.com.

Reply via email to