Equation annotation (based on existing code annotation) #7413
Replies: 4 comments 1 reply
-
You can easily search through the codebase to find at least part of the transformation quite easily: The main difficulty is to make the annotation works for multiple formats, not only HTML. |
Beta Was this translation helpful? Give feedback.
-
Hello everyone, I've finished a POC in HTML + CSS + JS I'm overall happy with it's current state, even though it is far from perfect. I'll start working on a lua filter to fill out the qmd to html step. I'd be very happy to get feedback on it, here or by email. Best |
Beta Was this translation helpful? Give feedback.
-
On a phone, your first example has an issue. I click the second group (tags 3 and 4) but the explanation covers most of the first two tags, making them hard to click. I suggest right indenting the explanations to avoid this. Regards |
Beta Was this translation helpful? Give feedback.
-
That's a good point. Thank you for testing the feature.
I'm not sure of the best way to deal with this.
Currently, I'm leaning towards controlling the width of the tooltip to be
80% of the width of its parent and anchoring it to the top-left
I think that should solve that issue.
Le jeu. 16 nov. 2023 à 22:10, mbourne ***@***.***> a écrit :
… On a phone, your first example has an issue. I click the second group
(tags 3 and 4) but the explanation covers most of the first two tags,
making them hard to click.
I suggest right indenting the explanations to avoid this.
Regards
Murray
—
Reply to this email directly, view it on GitHub
<#7413 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACZDZEC7KQ3FCU6DOVHJ2LTYEZ6N3AVCNFSM6AAAAAA6V3UXJOVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TKOJSGYYDG>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Description
Hello everyone,
TLDR: equation annotation: wouldn't that be cool? what do you think?
As part of my thinking on how to make math better in pandoc markdown and quarto, I've been thinking about making an equation block annotation, copying the existing code annotation.
(obviously, this is a quarto-only feature, centered on HTML output).
For example: (NB: notation is not final, & is an aligment point and \ is a newline)
would parse into:
Math
Eq. 2: Using ...
Eq. 3-4: Expanding ...
for non html formats, and as a tippy popup for html
I'm not particularly worried about making this first version very clean, so I'll just do an extension with:
One thing that would be super helpful is if somebody experienced with the codebase could point me towards the AST transformations that underlie the code annotation feature?
Cheers
Guillaume
Beta Was this translation helpful? Give feedback.
All reactions