Repository navigation
Replies: 6 comments 4 replies
|
I don't understand. A class is not a label. A label is a unique identifier. |
|
The possiblity of multiple classes being passed is a problem, I see. A And, a filter to convert specific class attributes to typst-label attributes would be better than writing actual typst code in the filter. |
|
I feel that #9955 may be relevant to this discussion. |
|
@jmaxsfu, I just want to check that you're aware of pandoc Typst property output. The #9955 discussion references this and proposes an extension (but this was all a while ago and things might have moved on). |
|
Thanks, I read it. I feel it strays a bit more from the 'separation of concerns' idea though... My ideal would be really clear generic semantics on the markdown side, all of the formatting logic in typst (or css or whatever), and the simplest possible hooks between. To me the typst 'label' fits the bill... it's "generic markup" in the classic sense. Right now, a bit of lua to convert specific classes into labels seems pretty simple, if not quite elegant.
β¦________________________________
From: William Lupton ***@***.***>
Sent: August 7, 2026 1:26 AM
To: jgm/pandoc ***@***.***>
Cc: John Maxwell ***@***.***>; Mention ***@***.***>
Subject: Re: [jgm/pandoc] Typst <labels> from IDs only, not from classes? (Discussion #11794)
@jmaxsfu<https://github.com/jmaxsfu>, I just want to check that you're aware of pandoc Typst property output<https://pandoc.org/typst-property-output.html>. The #9955 discussion references this and proposes an extension (but this was all a while ago and things might have moved on).
β
Reply to this email directly, view it on GitHub<#11794?email_source=notifications&email_token=AAL7UUZA36TVFQ452U3LOFT5IWHEFA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCNZZGMYTCMZYUZZGKYLTN5XKO3LFNZ2GS33OUVSXMZLOOSWGM33PORSXEX3DNRUWG2Y#discussioncomment-17931138>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAL7UU5L2OWBU5VNANKT4Q35IWHEFAVCNFSNUABFKJSXA33TNF2G64TZHM2TOMJXG4YDWRDJONRXK43TNFXW4OZRGA2TMNJQGY42C5QC>.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS<https://github.com/notifications/mobile/ios/AAL7UU7ANHTATEB6XY3A24L5IWHEFA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCNZZGMYTCMZYUZZGKYLTN5XKO3LFNZ2GS33OUVSXMZLOOSVGM33PORSXEX3JN5ZQ> and Android<https://github.com/notifications/mobile/android/AAL7UUYWWGBK7DIYAL6DZE35IWHEFA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCNZZGMYTCMZYUZZGKYLTN5XKO3LFNZ2GS33OUVSXMZLOOSXGM33PORSXEX3BNZSHE33JMQ>. Download it today!
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
|
I just pushed a commit implementing the |
Uh oh!
There was an error while loading. Please reload this page.
A fenced block with an ID will get converted to a Typst
<label>:::{#foo}But not a class name:
:::{.foo}Which creates an incentive to use IDs to fenced blocks when I want to control their formatting... but then we end up with with duplicate IDs. That doesn't break anything immediately -- but an ID should be unique.
Is there a reason why this functionality in the Typst writer only works with IDs and not classes?
All reactions