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

Fix non-markdown text shapes #528

Merged
merged 3 commits into from
Dec 26, 2022
Merged

Conversation

alixander
Copy link
Collaborator

@alixander alixander commented Dec 26, 2022

font-size, bold, italic, and underline were all not supported. it wasn't really important because markdown should cover it all. But, it's still valid constructions in D2 and should work. plus, with font-size not working markdown right now, this is quite necessary for diagram titles

None of the existing tests have any material change. The mask IDs just regenerated due to diagram properties changing (all the text was being incorrectly exported as bold).

Screen Shot 2022-12-25 at 9 53 15 PM

The purpose of this is to support my previous PR on diagram titles. Users should be able to set any font size they want. E.g.

Screen Shot 2022-12-25 at 9 59 07 PM

closes #527

@alixander alixander merged commit 8d38464 into terrastruct:master Dec 26, 2022
@alixander alixander deleted the text-font-size branch December 26, 2022 06:02
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

Successfully merging this pull request may close these issues.

font-size doesn't work with shape: text
1 participant