From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/33481 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Typst syntax highlighting Date: Thu, 7 Dec 2023 10:28:07 -0800 Message-ID: <6044DCB1-2D82-4BB6-BE40-0A471DFD241D@gmail.com> References: <3675c334-3e3e-4ca9-85c3-567a7909bd6cn@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.4\)) Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23881"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDW7ZIEHTIIBBO45ZCVQMGQE6QC4VTA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Dec 07 19:28:15 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-il1-f190.google.com ([209.85.166.190]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1rBJ6d-000619-0s for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 07 Dec 2023 19:28:15 +0100 Original-Received: by mail-il1-f190.google.com with SMTP id e9e14a558f8ab-35d7098696esf15026705ab.3 for ; Thu, 07 Dec 2023 10:28:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1701973694; cv=pass; d=google.com; s=arc-20160816; b=QAaU2wsXZwhTaDniV5PS3oIJiaQV3AODMi+REwll6ac5AOXF9UIomcJ8FXbwrA1Eba NFXNvKveBwm1ZbKjGZTQqLh17X4K+M3u2I1UGO/tV5ySAkFX84pal2K6aPsfOdkvfzmv Fee8/KYcu6lcYciZvaz2Ef6MshfsGICMbeC9Af43Uamtx5Jos2GznPGNawXhbke3/oKA auqqDEcyO1idgLtWQHL76GNULFBwAUfNKZyG+ceYs4ijXzpbc35m8UAA5VTJ1fo3CyqP HNCpbkVHdxQfCJg0n80CKEif1yJaLZ9n5cfPlqvwb6CDaD4shui9hsiPWHAwxhHYEU1w MJUg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:message-id:in-reply-to:to :references:date:subject:mime-version:from:sender:dkim-signature :dkim-signature; bh=CjrNm71kxJjeQ224nXXuyZe4CrVHUCrXT+8N6dtR4hA=; fh=m01AhCNo7xUywHldCVYouaJypLlN7JgtNYbImzBf4N4=; b=P/gcX/x/kB7FiCPAmIs6QscYsRFxMtBi/lyIZco1S3aPraq0dovvsBA/qSgRcgeznG QwGoDJeNtl5fLQ/ifLm+lxlf1FgShoF6ID2dp9grTaZzJ/n28iJW7euo3xdUyyyhuD9Q +5yEGSwNH/viS57/mrhiDzMHxVeYNRAqjbxt00FOlNG4k3ZaEvSeb5GFxerxeGBJNfta Ofbtq60IRZC/5DGNejMfXnJwCioKxmgsXH0fYhGdtamRmM890M+wiGxa/4ea3gd72nSL 5hBfuKe1DQGKTixZIICOOydn0cTRes5KvtmLqD1oURaH3FkRgzsRPaIO7/tzW8laBmR7 fEmw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Fc9HFTO+; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::436 as permitted sender) smtp.mailfrom=fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1701973694; x=1702578494; darn=m.gmane-mx.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:message-id :in-reply-to:to:references:date:subject:mime-version:from:sender :from:to:cc:subject:date:message-id:reply-to; bh=CjrNm71kxJjeQ224nXXuyZe4CrVHUCrXT+8N6dtR4hA=; b=SmGVO59yRRGFmiRDn3CGOYmp/v3pO1FxGRoWDAMZbX7zjXX5dZKpHaqy+1HkufAm+W AwbJG27KizW5n5O/Fg7qN/hCbqVD9qdbhKrht2GJG4hFKiR7I5iP2uoG/EKLxGdE64tc +sUst2Z5tQS1HuAwRTiFbzgjfOdB837fWP1Ve4FxS5D2wc3gjkP9HflMXSTMo2VaWuxK qzrwHVAoYYQbEfHjH34KmgXAiGIKpuFqJJWJjwZ2JW3Mzpimud5lmiIgDp/soeJL2kan po9/xnqo6UhAzgtWe12hljf6ftwKPFch8tnpivxkkXlsup+7eZLy DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701973694; x=1702578494; darn=m.gmane-mx.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:message-id :in-reply-to:to:references:date:subject:mime-version:from:from:to:cc :subject:date:message-id:reply-to; bh=CjrNm71kxJjeQ224nXXuyZe4CrVHUCrXT+8N6dtR4hA=; b=DWWLgXoJwi5kp1img9yzVNiTn8SXnyxFJlxCi7W1ld0loUlaQoBQNN3gsAhFodK3t3 ywBdSdkppSz6Nm74LHDTE+hw2+uQ7ExZ4dDbZY5LjWvLIh5HVmE9sYUOcoSEQKHW02m1 KzHBKy0R4N6/IYtDZMfco3D2JXSLr8RuxBNcr5o5OO+QMH6OzAmyRGKQ8ht+eaJvXe7G XQY3Fn1zXkYwfsX4P2JKs7VkhEePjAeJjl3vjSh+B9EBJgij6h/6e9t+tc/ORZUk1Ky8 PZRoU0wIpCLHtkXmUK26NxUshqKMnFks+N1+F7RsDDTGpspC1/TziWh4Zv79fJx9ja X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701973694; x=1702578494; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:message-id :in-reply-to:to:references:date:subject:mime-version:from :x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=CjrNm71kxJjeQ224nXXuyZe4CrVHUCrXT+8N6dtR4hA=; b=utntk+s7ekvAuNBJTM8i/DLcGPdhlsSNqmbJ/kzI5zvf0SF9pypXufyvTctAFvwOcj 4ODl4+oB0FzLNDjNkJ1XKnmMfKGIFgqswL2W7wdDloGpPXOgJroqqzbRlNN27xlbuFMB icyuPRWPmj/Xeqh06JjAGjGhjTOtBujFNzSjEyYX1Tnv7e9i9IKXg5bhlYB5X4D9COWG 113lSilDJHUeGWcsPt73ADDGXNiC0P/pFPucqxW+fVuWyx97f71M4kHWdwHB+u9f8wUx p2kRku Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOJu0YyJ4NGnFUudKZbWUFYG8cpd9QtjMBRnFgxpvHHHHeJq+jj4v/pd HXmQa1rhZttcG/uOCCpfgTQ= X-Google-Smtp-Source: AGHT+IEBO/JQd8vXybgKdxSsaTGAsyc1W7rDUIQBQBaPhhR3FjzBnlQ4rBaG46Xu90ZhE6ybVpvatA== X-Received: by 2002:a05:6e02:2162:b0:35d:a5f4:e48a with SMTP id s2-20020a056e02216200b0035da5f4e48amr994405ilv.126.1701973693902; Thu, 07 Dec 2023 10:28:13 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a92:b74c:0:b0:35c:c82c:c755 with SMTP id c12-20020a92b74c000000b0035cc82cc755ls1078135ilm.2.-pod-prod-02-us; Thu, 07 Dec 2023 10:28:10 -0800 (PST) X-Received: by 2002:a6b:e602:0:b0:7b4:28f8:517 with SMTP id g2-20020a6be602000000b007b428f80517mr3032333ioh.23.1701973690435; Thu, 07 Dec 2023 10:28:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701973690; cv=none; d=google.com; s=arc-20160816; b=f1mqiTykvrqiqF9HQQEfbu4VYcldWJMP8GgEuRK2yyU2NgMbkF6a9cZVqAIJHFRKCv YNvoHIKZk6wvQiP5z/hk8zo66JzKQOtiyhW5hV78B/Ni/hmCvLEqYIk0yNQ4qtGWjcDv RdN1obR7OQq9dagVHO0v0/31eyZgBFIDTzRkdotmj+Zmi3aJPLSZwKtPyZ468yDutZxP hb/XNuYeUffRKkKomF+JuUeAArkD+tRKUQAvKlzv3FceisnPBiw5A0fUN6tFzuRfBPP2 i2UuSkPCVG90MxD7LnopL6XkJJ+nvV5pFB/WvSWsALE3PYzZmIDAOm0dLDzhskY5fnjq +zmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:dkim-signature; bh=GV8g+GmIzI4NmdxwLJ8waAIGiTGhxM9+9QJwRi83lGE=; fh=m01AhCNo7xUywHldCVYouaJypLlN7JgtNYbImzBf4N4=; b=o3oTDW6OgrshmuqkU3BrHIdk5s8tLwVWIs9VkSjUNg/38KgJhjjJRe4uNRLqfUx3Z8 rOwm864zVEiuPFHUq6scre+F5JaZ8JWg6HftKgXXRqaeivz0g0RMWbLIoYLXrp083uq+ UobHCsVjZ3qqSC2uNUC5aApvOMFh5lCADyHK9BDTRGHCkSlL1ywY5RTzAAv6q7LMKrmJ YsKYPVB5mtFbHM/X7VWxzoSBK4NO1DQXSXTtb9WFGMVuv1v8RfEvqf1+SspCpXR+q2kw SF23rbJkyoRNA2v/3pjnYhjx1kvYs6+RrXkJ57cilFfwKO46NIKt8jh83Rkh/OkiA9gH uUUQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Fc9HFTO+; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::436 as permitted sender) smtp.mailfrom=fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-pf1-x436.google.com (mail-pf1-x436.google.com. [2607:f8b0:4864:20::436]) by gmr-mx.google.com with ESMTPS id ci13-20020a0566383d8d00b00466b2a71df6si36328jab.4.2023.12.07.10.28.10 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 07 Dec 2023 10:28:10 -0800 (PST) Received-SPF: pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::436 as permitted sender) client-ip=2607:f8b0:4864:20::436; Original-Received: by mail-pf1-x436.google.com with SMTP id d2e1a72fcca58-6ce7632b032so742159b3a.1 for ; Thu, 07 Dec 2023 10:28:10 -0800 (PST) X-Received: by 2002:a05:6a20:9184:b0:18f:97c:5b85 with SMTP id v4-20020a056a20918400b0018f097c5b85mr2889182pzd.83.1701973689304; Thu, 07 Dec 2023 10:28:09 -0800 (PST) Original-Received: from smtpclient.apple ([2601:644:4701:23f0:30a7:2eb:4101:637a]) by smtp.gmail.com with ESMTPSA id l21-20020a17090aec1500b00286550864dfsm1729593pjy.30.2023.12.07.10.28.07 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Dec 2023 10:28:08 -0800 (PST) In-Reply-To: <3675c334-3e3e-4ca9-85c3-567a7909bd6cn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Mailer: Apple Mail (2.3696.120.41.1.4) X-Original-Sender: fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Fc9HFTO+; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::436 as permitted sender) smtp.mailfrom=fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:33481 Archived-At: I wouldn't want to have pandoc produce a typst document with code blocks marked up in an unidiomatic way, with lots of annotations for emphasis, color, and so on. So I don't think we'll have consistency. It would be nice to produce output that works with "Typst direct support for syntax highlighting." If what we need to do is produce a list of languages used in code blocks, then we'd need to know how to translate between pandoc/skylighting syntax names and typst/sublime names. Do you have a list of the typst-recognized syntax names? As for the theme, this could just be added via a variable in the default template. > On Dec 7, 2023, at 1:28 AM, christophe dervieux wrote: > > Hi, > > Is there plan for Pandoc's syntax highlighting through skylighting (https://github.com/jgm/skylighting) to be supported for Typst output ? > > This would allow to have the same theming in a Typst output than LaTeX / PDF or HTML. > > If this is not planned (because hard to do or even not possible), maybe there could be some variables to help set themes through Typst direct support for syntax highlighting > > It would allow to set easily a theme from a YAML block entry > https://typst.app/docs/reference/text/raw/#parameters-theme > > Thanks. > > Christophe > > > -- > You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/3675c334-3e3e-4ca9-85c3-567a7909bd6cn%40googlegroups.com.