From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31753 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Albert Krewinkel Newsgroups: gmane.text.pandoc Subject: Re: Filter for inline syntax extensions Date: Mon, 14 Nov 2022 08:38:57 +0100 Message-ID: <87r0y6561e.fsf@zeitkraut.de> References: <87edyle8l2.fsf@zeitkraut.de> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34318"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCZJF7XJTILRBMXGY6NQMGQETKPR2WY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Nov 14 08:50:14 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-wm1-f58.google.com ([209.85.128.58]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ouUEP-0008jS-ME for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 14 Nov 2022 08:50:13 +0100 Original-Received: by mail-wm1-f58.google.com with SMTP id c1-20020a7bc001000000b003cfe40fca79sf118118wmb.6 for ; Sun, 13 Nov 2022 23:50:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1668412213; cv=pass; d=google.com; s=arc-20160816; b=XrI8t3Y+Yd8i54Bw80HEC9PkpAqeVMkdzOAO47WrwsAf4eOYhdrBxtTZq2g0HKDW/W wR/Cj5WLFkdqD/bVHQVx/x89SbIrjk0hJdvEVGtv5j3BYA2q6CW9T6aCTVS07SOvArVw bmqFMmnanJeZmgm8vKiZIKF7mozX0o7UF35xS4yh80a3v1jy11xyJT3HwwTCWlxe9R3/ bHOAiMGvMALYwXYA1SdNQNsITU/LXeCAYPlWrz84V3exHzYtG9U/7usw5QGks3YVSkhN dAS6hN7RcxLRcMfRNV9P6MDznASKNMCVyQd2QE+BHP4SVBXG8IrDqXVDgP6XTPZBzVet sV4g== 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:mime-version:message-id :in-reply-to:date:subject:to:from:references:sender:dkim-signature; bh=Koekp2lWaGp9y29xoocKhQ2l3tC7cPuW1Fl+s23lbZA=; b=wXQfXL5e+UZUe3mShYM4G9ClXh8G6Xzv1PsRvqc5P+0nQz7EP9mxc077bPPDa0weg/ laeXtqgxoDF062NGG3RTJnFj/F4BszOsDNwhAweTm3BWxl3ELme2oijhidF3zeNrSX+6 tIcByfgWDNbZdcj/VaXuP5PVw7N4XO70SM5IY9sg9LaMNbi4Em5FK2fi6uWtT9Wjycct mMsNLFq1umSLYNKFBU45O8LedVOpoKjuCnE4sDurNuxERvVas3WcB63tr1SOHF3xHGSg HEFPmHAc4/fxAzWPtomiM1iijVU4aFgbOqWfUrtu4ydrhKJe/hi18e0dVmfadaH/2Wwh yRsA== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.56.151 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; 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:mime-version :message-id:in-reply-to:date:subject:to:from:references:sender:from :to:cc:subject:date:message-id:reply-to; bh=Koekp2lWaGp9y29xoocKhQ2l3tC7cPuW1Fl+s23lbZA=; b=TAaXZHuigjzs7QYvtA8s51/k2GJPAL/fUp30EjTi36nzb1P0a8FaKEvH5H/lBZb5ys ZHaA/TMjoEUV1mqkI2mHNyrBfn45ZO+vEBXitb/fNarShspy3P4/EIheMlhPB/e9syJh nAFGLULBFx5iGyQMESIpMlUBLa4aMmpM5qyj+IJarGcm4mveOq2969NVfPB6kDwaAwuf aZTuJhWYMeQ5JV97htqp3PbZBOUq3HIzCwSvamOttetoFiqXTv0MShgVCIPx25NjLh/f 9INkx+VO0ZaVT1OXZJSzZsDaUp/sQTmx1VQBVtuQI9qKRA65vopBuuL2zgDB22v73OvU By7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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:mime-version :message-id:in-reply-to:date:subject:to:from:references :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=Koekp2lWaGp9y29xoocKhQ2l3tC7cPuW1Fl+s23lbZA=; b=35KQeudo06P9ihfl3lGEgaVkHNIIwzk4GonzNQaNZtRpd5ScRhYbZHTxi8IF6UXpeH f9vZwc0kXPV3V9zVtmP2vhTu5aeQE0H9MekUO2TfoF2LGCmSpBf4NBILMs1ddW5M463W EmQ+cExKpW/tB217wsNGDIEG+FeuZNm9l7KLklDiK3wO4olZwSOUbt2rK7APKHbetKMi BNpqKOAKu+Xx+1A3vujeURMDeSJgbTwtk/fR3swc1h//CzNBlrCDUXwACFUYKEOCCAfn nTmQ/1M1BrvlI7YwNVwmpiDIfK9qTsm+QNuat7O+Y1B9o7 Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ANoB5plfulL3kSLyzOOPDPbMz9in1O2JL5BvUmLxq4Ioaapu0UrBAuCK 32ZRCU5uMFHvDMMF/uyyldc= X-Google-Smtp-Source: AA0mqf7S1LZzpKkT3vIJlHo2JwbXjt715BDmfzGw2CWcgNy0RhM2GwmO0youHPI+cnN7EMqpQRSzQQ== X-Received: by 2002:a05:600c:688b:b0:3c5:f9f1:f956 with SMTP id fn11-20020a05600c688b00b003c5f9f1f956mr7237010wmb.50.1668412213333; Sun, 13 Nov 2022 23:50:13 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6000:222:b0:22c:d34e:768c with SMTP id l2-20020a056000022200b0022cd34e768cls14358850wrz.0.-pod-prod-gmail; Sun, 13 Nov 2022 23:50:09 -0800 (PST) X-Received: by 2002:adf:e308:0:b0:234:2620:1785 with SMTP id b8-20020adfe308000000b0023426201785mr7184092wrj.275.1668412209103; Sun, 13 Nov 2022 23:50:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668412209; cv=none; d=google.com; s=arc-20160816; b=PDL518lEhioFMjJ2KpOVN/T03f7Lt7oI0F9RWM07GIiAETMLJaFRZ2gk9c+Y+yU2Gh eKrEzvsKcN+qLic6CH+ZVGZC5ZrRgmnRQTMGlG0D9/NG3eMPVW7juoh1EEqYiqpH3zB0 /NPujklRYRwbNyqhaw5KXCg6NXeik9uzptwy2zm/ZOHZig3MgS1Dz27yKmSEK1XUkoiW 1foIJn/xeBQ4QXTvWT4pPRiTzEPK1kRxq1/WK3t9DkIJCBNKtfRJkiwtDeT4UqDjSH/R UNquVeJixNc+6KY0eRxMSf2HP2FCJ0UkV9TPd7XQ52KlT1Z7APfy6PeaPvrsXOtzs9cE 5rRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:in-reply-to:date:subject:to:from:references; bh=CVksztn1+/2hb2F/tAr6qF7YbXUi4sut+J8aUiuqTIQ=; b=z0ZfBsX8l8Eb2gAYFOX1vQbLevBuxMRVW1977y5pUNj5w3tiOS3ehtdXX+wqTAKbZT Hv7Rh+Zn48+q9MFb4ddIoAmVYaI5T/nGxvuyXdnr0IkBGLYUjKOxAhB8bPa7wdNswL3Q F+gZ6N9tKtoOJg+v7yGkDLNFn2xZCIKDBUo9Y4JwWfWcOiOd2doS2ULbVD+6Pqg9RNV1 g6Ive3Ev1IlLGMm207jb/g1XrsaiwM6/yxvoJ1VdtpcGCiYzrH6Hu62fFMTWUK7pbWwl 2s6ZopP4/CkSj8edKveJ9+8A4qZUPXsqDvyag8BhswN7dAPjpYzK/F1DVRq4Jo4vR2uI +EtA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.56.151 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org Original-Received: from mout-p-101.mailbox.org (mout-p-101.mailbox.org. [80.241.56.151]) by gmr-mx.google.com with ESMTPS id ay5-20020a5d6f05000000b0022e5cd5f848si294360wrb.3.2022.11.13.23.50.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Nov 2022 23:50:09 -0800 (PST) Received-SPF: pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.56.151 as permitted sender) client-ip=80.241.56.151; Original-Received: from smtp1.mailbox.org (smtp1.mailbox.org [10.196.197.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4N9hL65fGTz9sSk for ; Mon, 14 Nov 2022 08:50:06 +0100 (CET) In-reply-to: X-Original-Sender: albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.56.151 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org 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:31753 Archived-At: Hi Laurent, Laurent Duperval writes: > I'm using the highlight.lua approach from here (https:// > gist.github.com/tarleb/a0646da1834318d4f71a780edaf9f870) and it works > when exporting to PDF but not when exporting to ODT or DOCX. I'm not > sure why. I would relly like a way to make this work reliably with > ODT. This depends on the pandoc writers for each format. As noted in my original message, support for other formats requires more work. The additional work to get support for ODT and docx is rather minimal though: change lines 27-29 to local function markup_inlines (inlines) local attr = {class='mark', ['custom-style']='Highlighted'} return pandoc.Span(inlines, attr) end The text can then be style via the 'Highlighted' character style. -- Albert Krewinkel GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124