Markdown rendering issue when using `theme-id: 300` (Terminal)
Didas-git opened this issue · comments
I was writting some note in markdown and i came accross this weird issue where the last word doesnt get rendered, it adds the space for the word but not the word itself.
I have a really small reproduction of this on the playground
And i will leave a screenshot attached for clarification as well.
yes. it happens a lot. so i avoid it as below.
https://play.d2lang.com/?script=RM7NSgNBEATg-zxFgVd3DfG2iCcvggcvPkBnprNpnZ843bMgZt9dMgvm1v1BFbVQ1Qm_Dgj7wZd8lHl7gUg_pdnAeZbME4widbcTJx4kTHjc7boEql_DjfedV7c6Z6y29UU6cJxwSaFH7vBWKie8nrUl12kDuQJCiaVCxUCJ7R6-ZGVvbK2CgpxFveQZHMVGvJTMHuTRaiZ8NrUy4r0SK2fDwifxLdJ_G5QTvpsojtS8HJqO-DAcJV9vlCDlFmrRqnhhxcKZM5no2Nc-HerDswMubnV_AQAA__8%3D&layout=tala&
dev notes:
It's the mono
rule in the theme that's effecting it. I've inspected the pre-processisng code in d2graph and the some of the code in textmeasure. Can't find anything amiss. Even adding +1 to the width makes enough room. But this can't be reproduced unless it's mono font, so it must be something to do with that condition only.
There's some things we do in textmeasure that's "for code only". It doesn't affect code block shapes because their measurements don't need to be as precise (there's padding). That was customized some, so maybe something we did there is off-by-one.