From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32395 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 14:38:39 +0000 Message-ID: References: <79ac7814-9558-4d49-a682-cf31f970d27dn@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="32173"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDCINCES2QJRB5EO7SQAMGQECH7ANAY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat Mar 25 15:38:48 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ed1-f62.google.com ([209.85.208.62]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pg52e-000875-1h for gtp-pandoc-discuss@m.gmane-mx.org; Sat, 25 Mar 2023 15:38:48 +0100 Original-Received: by mail-ed1-f62.google.com with SMTP id h11-20020a0564020e8b00b004e59d4722a3sf6705372eda.6 for ; Sat, 25 Mar 2023 07:38:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1679755127; cv=pass; d=google.com; s=arc-20160816; b=GlGzZ++2Qo0WKmhF9Lc4VqEIjkEEdIYaXglmF/OYlvt00ZcEXJO6kL87nmeCEzzYz3 MEmlpXNXH7rLO2pPk+781NUse1axf02xnWeMbYbrDmpO5TVJyYCJjksCW7G7t5gjuVvV fyPOOv0X9Maql7AA8dwsbjDCCudV9FHXciZvehw9rd9CKvOHrrKbhEKzwND5m51Z8NWa tE1jUalfGf3WNTO2O3vrK9omGuFeN+8Gfcf3XwF333Ac1Fa2DoxzlJhvVkfguYAJhQi1 7b5qnSJ+DNAcLB22/2ogGAGDA7UwVAwUhbDLYuyEgeVD9iYdQ0C8wdIMK5ozLDxkK2p6 BtVg== 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=zEhzeMmJF7ynmif83lUytQdl+Fy/OSqBo+6Q7f9jvx8=; b=fGXXAAaeo3JFq6lwYzRyVwy3DXbZY6H0azg74PZQVSklyexOVcw9aj73TtqlWdUxMe DuyWEIEwo3c6Vgrw9OWlno7JiMA3uZsSf5i7lxPE3WfyPZDnduk14N/I2CWBNBMSeGdU 55D264QqnfySuozyonWl3CtQHO8MubR1AQwIOEhNYjV34w7Wz0QWgpYjv7Iq2TdyjEsL ZMHw7Oc5tljPqH9uOGIH+xjb1imJDoX02CM8LfKKb5Vi82RN/PGKFDJVWp4L/gqkX1lk VCnYTuJmhvBS5svUa0Q9hV4aVgUCXhumFpd0SnZl737T7879S8SssnZZai1agkJ2iFBX 1q8A== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=jfJQqrnQ; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 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=1679755127; 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=zEhzeMmJF7ynmif83lUytQdl+Fy/OSqBo+6Q7f9jvx8=; b=GpvXF4ftACCok4cg9WI50MlGrmTrpK5GEspDurxjVfG57b/K4RD8c9kU0AuuHZn7Km sxkFtvS2SkNGUI1+mfdsC7lwVIkxZu1xwc7lxLMGIuNOklrq3sR7zGrdTM+ySOxpVRn0 kwsPmuA0xAIEvpeYiybG10EC1B6lYjBIJmsB8X5ZgU+JA6oD3YzJVOEBR+EKma5vn0NH myNyKVHlKxSi/b/gVO+YJl4EvFn576Q6+rOdLd48ghulE2YkWv/komInH8Zg6pBCZ0vC imkzof7AT5HvNy7/JB6XENbhSCoridK X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679755127; 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=zEhzeMmJF7ynmif83lUytQdl+Fy/OSqBo+6Q7f9jvx8=; b=yHPg1J0j0/Rdn+16+gDBFNfiHi9LN+seL1isrv99pzo+g4DpmstNdx8Ja6QanqToOv 4Y3JJBB+IE7Pqab8aDNykix9EQzf/ZDY2BCBuFu/oycBAOH6XRYCsemrqDIje6WKKy4g hXMgDAjVwWvmPRt1skv1WiAIM0NqRMhMwXwG66/P3Twy+cEU0CUdFr21l9TyPavnCz0f ARvddYhPgnu06Jxh2Qgn0Ne0HvpzIN2rjN3FCxHX5FRm3r7fcsz6qaVMAK4yxM7R Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AAQBX9cRYhiLRQFpD3sThq8mXdDrVjrl5414MuVGk2OslVKQLpY8qLgo J4kspAZwjOc27vwjhctuhao= X-Google-Smtp-Source: AKy350b2rrRAeWrUecF3pvvc0HEQLNrXV+8nVkjTp8HsHxsEL5IR494WPQZxnSMsfqvdahO5ihRTvg== X-Received: by 2002:a50:8acf:0:b0:502:3a4b:1f1a with SMTP id k15-20020a508acf000000b005023a4b1f1amr510132edk.4.1679755127747; Sat, 25 Mar 2023 07:38:47 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6402:5214:b0:4ac:b59b:6e28 with SMTP id s20-20020a056402521400b004acb59b6e28ls1159782edd.2.-pod-prod-gmail; Sat, 25 Mar 2023 07:38:43 -0700 (PDT) X-Received: by 2002:aa7:ccce:0:b0:500:2cac:3329 with SMTP id y14-20020aa7ccce000000b005002cac3329mr6072396edt.25.1679755123100; Sat, 25 Mar 2023 07:38:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679755123; cv=none; d=google.com; s=arc-20160816; b=SWMt5k8V8jw729/fNHE2WKvb2mq7PzBQck3WLctnC69xYSaqOeZV1QeA2gDxyBTTSO obIRXfHnCVqsnBhJ0PQeBglDRMERjtdZShYYcfwN+c4kBWlEiT1MSsy0nWvZHL+FMSrR WFphCnYaeg4LdgLSdgOuvXkWwYAV+20BbfCOWxCT1kmmPxNK+/ZgeHdOlQqzfWM5DqPq GTYezeaYNPXGc8wViZKm2TB2y87FdgcwXlUC3hpRt5VHUc35J4u/DGrM3RxRyxS5BRVI 24u8MbyTFwwuWqlCewyrZCBlSiipxxeyA1I36qXCStaqzcSegmcHHV2lqeyv8HXiLHT0 D95w== 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=0BNbmJm50DO6busRZoQwegvs/LBjKfGooEFxHFdso6Q=; b=vIG5YQpHfTWN6Ax9B1Fz3HeUUBKZH3arfaxHdLx8NRJHKZNZ9sDUUUsp5f2OTlyYFt Bfww6qtyAiiTq0P3hDTKnOSBEB2Xm3ZA661JjZz59+eIKjmoHrw5io7f8E1keYOOzcO0 ISFR5Ma1Df7GfKiM53DbCZmdIL9Lo10pJXxNTL0PKwKAQekZWntfcjVg7GF+FEuvhktc k+1Ct4zLHMHxr9eT/L6Rrim2bhA32VGlm6LL/oR5XvayoQ8LnDev/MfCnzoBd35PeO7o eMnzsgc6gpYVLzXjPyUk0JLI6WULbdZqfEzUgpoqxSHfZDgxZk52s2K1LazB5a1UfU9D F6xA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=jfJQqrnQ; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 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 mout02.posteo.de (mout02.posteo.de. [185.67.36.66]) by gmr-mx.google.com with ESMTPS id t13-20020a056402524d00b004bbea073a82si1055905edd.5.2023.03.25.07.38.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Mar 2023 07:38:43 -0700 (PDT) Received-SPF: pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 as permitted sender) client-ip=185.67.36.66; Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id AE1182401AA for ; Sat, 25 Mar 2023 15:38:42 +0100 (CET) Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PkMC61Zwwz6tmq for ; Sat, 25 Mar 2023 15:38:42 +0100 (CET) Content-Disposition: inline In-Reply-To: <79ac7814-9558-4d49-a682-cf31f970d27dn-/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=jfJQqrnQ; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 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:32395 Archived-At: First, you need to replace `\\hl{` with `\\colorbox{declared-color}{` (mind= the double backslash). Then Span.lua can be replaced with the following fi= lter acting on emphasized (italicized) pieces of text: in-red.lua: ``` function Emph (emph) local content =3D emph.content if #content =3D=3D 1 and content[1].t =3D=3D 'Span' and content[1].classes:includes 'mark-red' then return { pandoc.RawInline('latex', '\\colorbox{lightred}{'), content[1], pandoc.RawInline('latex', '}') } end end ``` Here, I replaced "mark" with "mark-red" as you suggested because I don't re= move the Span element, in case it contains other classes or attributes that= should be processed by other filters or by Pandoc itself. If the Span was = kept with the "mark" class, Pandoc would wrap it in the \hl macro afterward= s. Le Saturday 25 March 2023 =C3=A0 05:42:45AM, Pa Sc a =C3=A9crit : > In markdown (written in Obsidian.md) I use a plugin/theme so that `*=3D= =3Dtext=3D=3D*` > is rendered as red instead of italic and highlighted. >=20 > I use this lua-filter to convert regular `=3D=3Dhighlighting=3D=3D` to La= TeX `\hl > {highlighting}` which works perfectly: (I somehow require these two files= , I > can't remember why) >=20 > **highlight.lua**: > ``` > =C2=A0 =C2=A0 --[[ > =C2=A0 =C2=A0 Add support for a custom inline syntax. > =C2=A0 =C2=A0 This pandoc Lua filter allows to add a custom markup syntax > =C2=A0 =C2=A0 extension. It is designed to be adjustable; it should not b= e > =C2=A0 =C2=A0 necessary to modify the code below the separator line. > =C2=A0 =C2=A0 The example here allows to add highlighted text by enclosin= g the > =C2=A0 =C2=A0 text with `=3D=3D` on each side. Pandoc supports this for H= TML output > =C2=A0 =C2=A0 out of the box. Other outputs will need additional filters. > =C2=A0 =C2=A0 Copyright: =C2=A9 2022 Albert Krewinkel > =C2=A0 =C2=A0 License: MIT > =C2=A0 =C2=A0 ]] > =C2=A0 =C2=A0 > =C2=A0 =C2=A0 -- Lua pattern matching the opening markup string. > =C2=A0 =C2=A0 local opening =3D [[=3D=3D]] > =C2=A0 =C2=A0 > =C2=A0 =C2=A0 -- Lua pattern matching the closing markup string. > =C2=A0 =C2=A0 local closing =3D [[=3D=3D]] > =C2=A0 =C2=A0 > =C2=A0 =C2=A0 -- Toggle whether the opening markup may be followed by whi= tespace. > =C2=A0 =C2=A0 local nospace =3D true > =C2=A0 =C2=A0 > =C2=A0 =C2=A0 -- Function converting the enclosed inlines to their intern= al pandoc > =C2=A0 =C2=A0 -- representation. > =C2=A0 =C2=A0 local function markup_inlines (inlines) > =C2=A0 =C2=A0 =C2=A0 return pandoc.Span(inlines, {class=3D"mark"}) > =C2=A0 =C2=A0 end > =C2=A0 =C2=A0 > =C2=A0 =C2=A0 -----------------------------------------------------------= ------------- > =C2=A0 =C2=A0 > =C2=A0 =C2=A0 local function is_space (inline) > =C2=A0 =C2=A0 =C2=A0 return inline and > =C2=A0 =C2=A0 =C2=A0 =C2=A0 (inline.t =3D=3D 'Space' or > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0inline.t =3D=3D 'LineBreak' or > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0inline.t =3D=3D 'SoftBreak') > =C2=A0 =C2=A0 end > =C2=A0 =C2=A0 > =C2=A0 =C2=A0 function Inlines (inlines) > =C2=A0 =C2=A0 =C2=A0 local result =3D pandoc.Inlines{} > =C2=A0 =C2=A0 =C2=A0 local markup =3D nil > =C2=A0 =C2=A0 =C2=A0 local start =3D nil > =C2=A0 =C2=A0 =C2=A0 for i, inline in ipairs(inlines) do > =C2=A0 =C2=A0 =C2=A0 =C2=A0 if inline.tag =3D=3D 'Str' then > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 if not markup then > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 local first =3D inline.text:mat= ch('^' .. opening .. '(.*)') > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 if first then > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 start =3D inline -- keep= element around in case the > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0-- markup is not closed. Check if the > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0-- closing pattern is already in this > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0-- string. > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 local selfclosing =3D fi= rst:match('(.*)' .. closing .. '$') > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 if selfclosing then > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 result:insert(mar= kup_inlines{pandoc.Str(selfclosing)}) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 elseif nospace and first= =3D=3D '' and is_space(inlines[i+1]) then > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 -- the opening pa= ttern is followed by a space, but the > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 -- config disallo= ws this. > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 result:insert(inl= ine) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 else > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 markup =3D pandoc= .Inlines{pandoc.Str(first)} > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 end > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 else > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 result:insert(inline) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 end > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 else > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 local last =3D inline.text:matc= h('(.*)' .. closing .. '$') > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 if last then > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 markup:insert(pandoc.Str= (last)) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 result:insert(markup_inl= ines(markup)) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 markup =3D nil > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 else > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 markup:insert(inline) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 end > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 end > =C2=A0 =C2=A0 =C2=A0 =C2=A0 else > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 local acc =3D markup or result > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 acc:insert(inline) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 end > =C2=A0 =C2=A0 =C2=A0 end > =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 -- keep unterminated markup > =C2=A0 =C2=A0 =C2=A0 if markup then > =C2=A0 =C2=A0 =C2=A0 =C2=A0 markup:remove(1) -- the stripped-down first e= lement > =C2=A0 =C2=A0 =C2=A0 =C2=A0 result:insert(start) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 result:extend(markup) > =C2=A0 =C2=A0 =C2=A0 end > =C2=A0 =C2=A0 =C2=A0 return result > =C2=A0 =C2=A0 end > =C2=A0 =C2=A0 > =C2=A0 =C2=A0 local function markup_inlines (inlines) =C2=A0 return {pand= oc.RawInline('tex', ' > \\hl{')} .. inlines .. {pandoc.RawInline('tex', '}')} end > ``` >=20 > **Span.lua**: > ``` > =C2=A0 =C2=A0 function Span (span) > =C2=A0 =C2=A0 =C2=A0 if span.classes:includes 'mark' then > =C2=A0 =C2=A0 =C2=A0 =C2=A0 return {pandoc.RawInline('latex', '\\hl{')} .= . > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 span.content .. > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 {pandoc.RawInline('latex', '}')} > =C2=A0 =C2=A0 =C2=A0 end > =C2=A0 =C2=A0 end > ``` > This works great, I got this here: [https://gist.github.com/tarleb/ > a0646da1834318d4f71a780edaf9f870](https://gist.github.com/tarleb/ > a0646da1834318d4f71a780edaf9f870) >=20 > However, for my other usecase I'd like it to be able to render `*=3D=3Dth= is kind of > highlighting=3D=3D*` as `\colorbox{lightred}{this new kind of highlightin= g}` >=20 > I've tried replacing the `\\hl{` with `\colorbox{declared-color}{` but th= at > didn't work. >=20 > I was wondering if it had something to do with the class? But renaming th= at > class from `mark` to `mark-red` didn't work either. >=20 > Any advice or ideas? Thanks! >=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/79ac7814-9558-4d49-a682-cf31f970d27dn%40googlegroups.com. >=20 > References: >=20 > [1] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > [2] https://groups.google.com/d/msgid/pandoc-discuss/79ac7814-9558-4d49-a= 682-cf31f970d27dn%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/ZB8HbxE9qj%2B%2BaouD%40localhost.