Using HTML to style individual blocks in Logseq

Thu, 26 Jan 2023 09:06 UTC by garethbrown

Wanting to highlight an area of my Daily Journal template in Logseq, I wanted to highlight one section with my priority tasks. A quick test shows that you can use HTML tags and inline style attributes to achive this using CSS.

Here is the block in edit mode:

image.png

The block text includes a <span> tag with a color value in the style attribute.

#### Today's Priority (NOW A) <span style="color: red">DO THESE TODAY!</span>

Back in read mode, the block looks like this:

image.png

UI block loader
One moment please ...