From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32401 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bastien DUMONT Newsgroups: gmane.text.pandoc Subject: Re: Help with Lua filter for markdown to LaTeX with Pandoc Date: Sat, 25 Mar 2023 23:08:45 +0000 Message-ID: References: <79ac7814-9558-4d49-a682-cf31f970d27dn@googlegroups.com> <6a7dabf5-1fda-4825-9d21-193b63363937n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7354"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDCINCES2QJRBAP67WQAMGQEVDPLMWA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun Mar 26 00:08:53 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lf1-f64.google.com ([209.85.167.64]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pgD0H-0001gN-MC for gtp-pandoc-discuss@m.gmane-mx.org; Sun, 26 Mar 2023 00:08:53 +0100 Original-Received: by mail-lf1-f64.google.com with SMTP id k7-20020ac257c7000000b004db20d1cf7fsf1832602lfo.18 for ; Sat, 25 Mar 2023 16:08:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1679785733; cv=pass; d=google.com; s=arc-20160816; b=YDC6pFo0P2G9J/HMhV7a6gFPQQrEodCHRqXdbS+lO7nXEDbNTsVu4+sUxmYeQzwED/ f4A85tJqSjubO1b0R5lS5abGZrV3f142fdNL5o65gtie376nvimsi+F+M3p6pUzt3qN6 dkxIVuRPgRTXQHMg5RUyw8vLG3C8dqy5vJ54bMQXzgx323O98sgXxvPJwVcj/uxHZqlZ V43yA1Ut42fcffe2Fct1AqnolHaWn3TmjN9F9gHxMnweMyVKIP9U25NlbV5ZEYM/vTRp zybEOsbSWoOh36YBa2cBskOftfgJ1VrWlSpbT85ZXpuM59WhWERh3aJjdGgEf79KF+3R y0wA== 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:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:sender:dkim-signature; bh=RkQvpIm1GIemsAR/4+5HQkOKSD12XbM/s5zW5i9SvDE=; b=icdJeRDHEj1Cu0rKUOAuHBZq3fPZerIGt3spnpl/QaG3fsbeJIieoDPJXR0frrqCcJ ph5BzMZRfTfqTaus1VWIL6i8B2gbJNErI3jGWfScoIdRhzsg7WGQVRxmnseHjs9EvSpR nhoiB7Km4ywyYx6oZGmzL1pgdN9r7df++DdcWDZ2Chjy0c+7XRwaE433egdXTfvv35Ih 48CMP/WvSzOKQyUp3YmcxTCaDwF0aUno6vlnDkpv61d1NgxnGJAxXfUdyLeIX5N/iHc+ Ll/lXJxs80uHfpav/fQTKQWy2ygy9MJiENDC5MKVDIwyfdOdkVOpe2ALooSsPNHNaxq6 2FNQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=cHERIKzp; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; t=1679785733; 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:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:sender:from:to:cc :subject:date:message-id:reply-to; bh=RkQvpIm1GIemsAR/4+5HQkOKSD12XbM/s5zW5i9SvDE=; b=RnX7eQweYVqWAlP7T9lJDgG0+ZTvp/5wI3dq25HBwOBG72AGZgQKvoA9cSBDHFO5zA GYwRQtpA1reltY6YjiuzibGP+TFObxI8iWxSCyXTyhmjFz9kJ+KMGY2rAclLzpO1umt3 U2pzRiAgdzFrBlR7jRcr6/jq/fRLQUazTHV61nn5pxvhi0p1F8RLqAiSaeUeiyyJlDvK ACGLxCjA51/3sFa5oMO+CZQ5hE/2j2mmzdAfYn24YiiOCyUzFZeiZfpnmf1/K3aGGeyN KtQMvNHFgnrlmjjH8B6u/I7R9Kac+xW X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679785733; 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:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:x-gm-message-state :sender:from:to:cc:subject:date:message-id:reply-to; bh=RkQvpIm1GIemsAR/4+5HQkOKSD12XbM/s5zW5i9SvDE=; b=SOYQUH1TG/kOjrQF6F4ZtkzQMIwW7xl9CkBXLFM1ud1QkE4zBhaUYJlZ2ydE/qstnB VYLt6sWchuA/CNoH16QU6qJx1SXCeytJ/F04oi1KOGkvsZyDChTfpsNWgtj3Jh2F28K7 hPdsMPlCeoF8yYTsk6XRRJYzQtKLklIicjX3JtQlG7LMuTpAjY8UbNeup93IU0gyV6Rx 0F7ReJXaNy9qpXGJE4qW5LBdlS0C8CgIKdGwPLfBrtq/Xi4Lg4awkWYTExNMdYcF Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AAQBX9cidTO4NX1MrRSmUwYN/+B08vGkB0K6bXlKZmz7JKaRnQklRTGb q3GUCU2k6fnmKDmTDxh0+l8= X-Google-Smtp-Source: AKy350als1dUyFl4rPEf+IxdjPMjHykxve9t6bpwIdpv8BjkUoEX2a7TzypBHJINdAFDEq9WTEnFIg== X-Received: by 2002:a2e:8786:0:b0:298:6f39:21de with SMTP id n6-20020a2e8786000000b002986f3921demr2134541lji.3.1679785733085; Sat, 25 Mar 2023 16:08:53 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6512:3c84:b0:4e8:6261:7dc1 with SMTP id h4-20020a0565123c8400b004e862617dc1ls65859lfv.2.-pod-prod-gmail; Sat, 25 Mar 2023 16:08:48 -0700 (PDT) X-Received: by 2002:a05:6512:48c:b0:4ea:ea03:ec8f with SMTP id v12-20020a056512048c00b004eaea03ec8fmr2101118lfq.9.1679785728121; Sat, 25 Mar 2023 16:08:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679785728; cv=none; d=google.com; s=arc-20160816; b=M+D0iGEBzzxUGOI6kgceSeLDd+HByrWIeqt/Jx8dH9ZWnZPac2GTQgHemxM9Df3PwI JFPz+XUAKACyQ3dh9nQR8Aax3kDFw5i992/3OtmosiXwR5G1DKTTgWgHEsWG7nt1kn6k Z0dnAWEB3hyCRtIxBP88UTl0X8tj8875kR8qQDsB73UDRVhSx3NFeGtwVLE7f08icx+t bY1rlgaL5BgVxxdekolAoYEnTLhwllyt74YtmQaHfpZgHEE/Xfew21/9RlSdDofWGtUJ +/O5hsbMX+ktH2A5D8CDBs8vTUSEPcDwwwwCfipJTV69ZYD8gy0jy1OqWI6inOM0hxHO WECQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:to:from:date :dkim-signature; bh=p6CXwNRdXEyUqlWbGU1fsp/qBw9Rln8K/7HJ4Iy1ZAk=; b=CqsJIB7Fy0dYOXxTVB6jvaI/4ahWM/K8hNweauaxNUxAxKwhVN7HHANILFfMpM74bI GW6I5JAyeC5al9AIIUf51MLC9fTpFJT8nnmsUPO53SEuLOEwpISF+X8MGIrEZsvbMkwx qyvRfuSiugZpeqSGE5q7M/ijgeSNRUe9ZyP5ilCPBV818QrbFCOliJmQUNJHjSsMIczB i8k/rftIR0BSgnuXmdg2d45TF0zpRFyDlbeK7734+97ctYBpowIhZIg6tmhWbXLfRO/h Ray3ngfVwVsPI3MlOMnAEq+3ZNg+OCsvZAP+Zw3zfA/fsfAnWt1lX/kQ5AfiRYaHihhK eOYg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=cHERIKzp; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Original-Received: from mout01.posteo.de (mout01.posteo.de. [185.67.36.65]) by gmr-mx.google.com with ESMTPS id y24-20020a0565123f1800b004dc4c1e0df8si1285419lfa.11.2023.03.25.16.08.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Mar 2023 16:08:48 -0700 (PDT) Received-SPF: pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) client-ip=185.67.36.65; Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 5050824012C for ; Sun, 26 Mar 2023 00:08:47 +0100 (CET) Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PkZWf6pKYz9rxD for ; Sun, 26 Mar 2023 00:08:46 +0100 (CET) Content-Disposition: inline In-Reply-To: <6a7dabf5-1fda-4825-9d21-193b63363937n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=cHERIKzp; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net 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:32401 Archived-At: Please share the two lua filters you use to parse `=3D=3D` as a syntax for = highlighting and to print in red an emphasized span produced by this filter= . We can't figure out what is wrong without them. Le Saturday 25 March 2023 =C3=A0 03:44:24PM, Pa Sc a =C3=A9crit : > Yeah, I have a MWE here: https://tex.stackexchange.com/questions/680766/ > help-with-lua-filter-for-markdown-to-latex-with-pandoc >=20 > As for the command: > ``` > mkdir -p /home/ME/Documents/Obsidian/Output/{{title}} > pandoc -r markdown-auto_identifiers -w latex {{file_path:absolute}} -o /h= ome/ME > /Documents/Obsidian/Output/{{title}}/{{title}}.tex --template=3D"/home/ME= / > Documents/LaTeX/My Templates/Proposal/default-proposal.tex" --lua-filter= =3D/home/ > ME/Documents/LaTeX/Filters/highlight.lua --lua-filter=3D/home/ME/Document= s/LaTeX/ > Filters/highlight-period.lua --lua-filter=3D/home/ME/Documents/LaTeX/Filt= ers/ > Span.lua --lua-filter=3D/home/ME/Documents/LaTeX/Filters/highlight-red.lu= a > --lua-filter=3D/home/ME/Documents/LaTeX/Filters/Span-red.lua > ``` >=20 > -- > 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 [1]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit [2]https://groups.google.com/d/m= sgid/ > pandoc-discuss/6a7dabf5-1fda-4825-9d21-193b63363937n%40googlegroups.com. >=20 > References: >=20 > [1] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > [2] https://groups.google.com/d/msgid/pandoc-discuss/6a7dabf5-1fda-4825-9= d21-193b63363937n%40googlegroups.com?utm_medium=3Demail&utm_source=3Dfooter --=20 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 e= mail 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/ZB9%2B/QK6XhVucw9i%40localhost.