colineckert / obsidian-things

An Obsidian theme inspired by the beautifully-designed app, Things.
MIT License
707 stars 60 forks source link

Better caption than "language-cpp" #126

Closed trick-treat closed 1 year ago

trick-treat commented 1 year ago

Your code block's pretty good but "language-cpp" isn't a nice caption. As for me "C++" is brief and better.

image

nigelinux commented 1 year ago

Is your code block within a callout or something? I can't reproduce your problem unless the code block is inside a callout. I think this is related to my issue #134 , because style (like syntax highlight) of code block inside callout seems to mistakenly use the default theme in callout.

colineckert commented 1 year ago

@nigelinux this relevant to reading view only and unfortunately, i don't have a good solution, as i'm using the pre tag's class as the content, and i don't have control over it.

Screenshot 2023-06-26 at 9 57 08 PM

i'm thinking of reworking/reverting code block styling, so hoping to fix this soon

colineckert commented 1 year ago

hey! so i've actually reverted to the simple/non-numbered code blocks. this experiment failed imo and the code blocks were too buggy and too hard to maintain. reverting to the simpler and cleaner code blocks better aligns with the Things style. Thanks!