jdanielmourao / obsidian-sanctum

A minimalist theme for Obsidian.md, with the aim of creating a serene space of retreat, for thought and uninterrupted work.
MIT License
313 stars 22 forks source link

[BUG] Custom checkboxes not working in Reading View #128

Closed elkadre closed 2 years ago

elkadre commented 2 years ago

Describe the bug Custom checkboxes just stopped showing on Reading View with the newest update, both with or without admonitions class. They still work in Live Preview.

Screenshots

Screen Shot 2022-01-25 at 21 10 18 Screen Shot 2022-01-25 at 21 10 38
elkadre commented 2 years ago

Manually installing 0.6.1 restored them, though now they're slightly off. Again, this is just in Reading mode.

Screen Shot 2022-01-25 at 21 23 32
jdanielmourao commented 2 years ago

I have released a couple hotfixes since the 0.6.1 update. Have you tried updating to those? I'm unable to reproduce that error on my end.

elkadre commented 2 years ago

I've updated through the settings.

It seems to only be an issue with a few notes, not all of them... I'll try to figure out what they have in common and get back to you.

Screen Shot 2022-01-26 at 15 18 54
elkadre commented 2 years ago

Can you test if you can reproduce with the - [!] admonition? When I take it out it works again.

I'll leave here a note where it doesn't work in case it helps figure out the issue.

---
creationdate: Monday 30th August 2021
creationdatetime: 14:46
cssclass: admonitions
zettelkasten: 202108301446
aliases: [FIP]
tags:
  - 060-concepts
---

- [i] #j/BR #t/entity 

- [!] Unless otherwise stated, this note quotes the [[INSTRUÇÃO CVM 578, DE 30 DE AGOSTO DE 2016]].

O FIP é, assim como qualquer outro [[Fundo de investimento]], um [[Condomínio]].

> Art. 14. Os FIP devem ser classificados nas seguintes categorias quanto à composição de suas carteiras: 
> I – Capital Semente;  
> II – Empresas Emergentes;  
> III – Infraestrutura (FIP-IE);  
> IV – Produção Econômica Intensiva em Pesquisa, Desenvolvimento e Inovação (FIP-PD&I); e  
> V – Multiestratégia.  
> Parágrafo único. Os fundos destinados à aplicação em empresas cuja atividade principal seja a inovação, nos termos do disposto na Lei nº 10.973, de 2004, devem conter, em sua denominação, a expressão “Inovação”.
jdanielmourao commented 2 years ago

Ah, I see what's going on. I think creating a loose list makes the checkboxes disappear. Loom_DBytR6nWc0

jdanielmourao commented 2 years ago

Loose lists create another tier of hierarchy, so it messes up the code. I'll work on a fix!

elkadre commented 2 years ago

Ah you're right! It was the line between the different types that causing the problem. They're just a few notes so I can just delete the line without issue, so no rush!

jdanielmourao commented 2 years ago

Just wanted to say that I've managed to fix this, so both custom checkboxes as well as pseudo admonitions will work with loose lists, in the next release.