Dv.el/dv.span/dv.paragraph: How to make specific word in string larger than rest? #1783
-
Say I have a DataviewJS Query including a dv.paragraph:
That outputs the amount of books I read in that year. I've figured out that including the I'm playing around with it and tried something like this:
and while that does make BookCount larger, it's now on separate lines. Is there a way to have this all in one line? Thanks :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
You could use .innerHTML property to have more control over the html
|
Beta Was this translation helpful? Give feedback.
You could use .innerHTML property to have more control over the html
let root = dv.el("div", "", { cls: "card" }); root.innerHTML = "<span style="(your css here)">In 2020 I read <b>"+BookCount+"</b></span>"