Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comment: Heading styles need to be unique #1

Open
MartinKorz opened this issue Jun 8, 2023 · 1 comment
Open

Comment: Heading styles need to be unique #1

MartinKorz opened this issue Jun 8, 2023 · 1 comment

Comments

@MartinKorz
Copy link

Thanks for a great script! I just set it up for my vault and style and my test documents work well.

One detail I noticed is that the different heading specifications in the recipe variable such as

[[heading]]
# Heading 5
level = 5
greedy = true
font.name = "Inter-SemiBold"
font.size = 8.414400100708008'

need to be unique. So if one's obsidian theme uses the same font and font-size for different heading levels, one would need to add e.g. the font.color variable to make things work.

Now that I had this realization it is kind of obvious, but it took me a few minutes until it clicked.

@Nathan-Yorio
Copy link
Owner

Thanks for a great script! I just set it up for my vault and style and my test documents work well.

One detail I noticed is that the different heading specifications in the recipe variable such as

[[heading]]
# Heading 5
level = 5
greedy = true
font.name = "Inter-SemiBold"
font.size = 8.414400100708008'

need to be unique. So if one's obsidian theme uses the same font and font-size for different heading levels, one would need to add e.g. the font.color variable to make things work.

Now that I had this realization it is kind of obvious, but it took me a few minutes until it clicked.

Yes, nice catch. This is a caveat of using this method. It may also produce issues for you if you frequently manually change the zoom level of text in obsidian. I'm not sure of a good workaround as this was a quick hack for me, but if you keep a single theme and don't change zoom you can get away with repeating the same recipe for other documents.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants