From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31686 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Aidan Reilly Newsgroups: gmane.text.pandoc Subject: Re: Transform a fenced div to mkdocs markdown admonition format Date: Fri, 4 Nov 2022 00:25:53 +0000 Message-ID: References: <7AF275BD-12EB-4424-84E5-1A45FF675520@gmail.com> <87h6zf698z.fsf@zeitkraut.de> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000008292d605ec9a1ed3" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7307"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDO2LZEJ4EIRBH5YSGNQMGQESD4KBNI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Nov 04 01:26:12 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-yb1-f187.google.com ([209.85.219.187]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oqkXD-0001jr-S0 for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 04 Nov 2022 01:26:12 +0100 Original-Received: by mail-yb1-f187.google.com with SMTP id k7-20020a256f07000000b006cbcc030bc8sf3531575ybc.18 for ; Thu, 03 Nov 2022 17:26:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1667521571; cv=pass; d=google.com; s=arc-20160816; b=krdUE+c8dDoRrcunUOz+J3b24jcrJlrKTdlDLiYOkOSRqKqG4kjr9UHh3nZ+Sr9MaC h+mMjeojufLiHlRtrpsnDif/mlGSuN9PUsZPS2btsvH3HuDQdGdPv46QDX5RWN+6Yuky 6GYUPrZsWqyxrqZ/s0uh5sM4qJF9bJ22sk/VEKcoMbEtL0CfR+jyFU9nYdkGitc9w8wN 1fJNNAqby0+JUWzEIe9E9FToBb0rJmYsEkJoqq8MVQ5uv1ziw/hWTLITCSPjj91kALsj DE4kECnqinNqf47TI7Mt3HEbfwUBqVJzRdKHj3CuvgNWwLXS+FNkxSTDW8VzHwenPlbV PLuw== 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:to:subject:message-id:date :from:in-reply-to:references:mime-version:sender:dkim-signature; bh=HDmFS24ebvEVNw7ZeLnciq86yqQiiXNpakspjPS2coQ=; b=Qk5FI1d+E315gJYPQknrJ9Z2/vWplV1ljRqm5fuWPQDkBnZGprNp5vk0WJq9kqMfwb wq+9RIKwCJPAilUPcD8q0dqmcfMYjvy8bQBtbXX46+Z9AePXU9LiRr4WhF3qcksk9aOX 8eUkuURosA7Sz69YI2Xngod2e7Zh1dalK9ZmeIfbCGjjFPg9AoZW0VIgSAVqjW0/Zey6 HyuehezPCxNW2VKFMg2I67t/baLrkcEygzEPMX+CwLsR6B2+/gK33V7Vlre/w3iyYYrY MxcXcfsPnBlCs7WqODY9NQ6PTWsQ/fwDaV9Zaskcw5YH+M7DdeugxBYFjRU3ojDc633o t5bw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=O2dagMeo; spf=pass (google.com: domain of aireilly-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org designates 170.10.133.124 as permitted sender) smtp.mailfrom=aireilly-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com 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:to:subject :message-id:date:from:in-reply-to:references:mime-version:sender :from:to:cc:subject:date:message-id:reply-to; bh=HDmFS24ebvEVNw7ZeLnciq86yqQiiXNpakspjPS2coQ=; b=ijXg/6KKHjXO/LyXXyI0EepvK6n7MkB8TYuQ960Otan55AGWqSJ6PjXjx9qwS2chCs 1g8IazjwDkKecJ4yTU9CitGRgjNvp3+onUM6CB9stdNf6XxmftbsF/usLMb7AJjc/qq5 Ep7UB1eThe81Dyj/FkW1fg9Q946SMDLrniPoTFa4ZoGCDKfmSBVGtQr+QFhPsKqVDrHL 4Lbv1mzIepI6O3BAHU2n7VGIS7hb7yysAUhH5Wx7gwhNY+X9Cg62hWxTogtLLbFaz/xG hrBte5jiEsFzfCLr4ktOx9S1PUsBeDl0yEG/t/ZVV63EK1N/45lHff807XeeurG37BTz /aXw== 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:to:subject :message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=HDmFS24ebvEVNw7ZeLnciq86yqQiiXNpakspjPS2coQ=; b=H9hSSoO5uzHgVVqKWTVoJw6IQj9lx/pqy1uTaf5hCn7OQGQiISc9HLrzrBcXGjZk3f kYVBlGThWucCrUaK6x2cYPFj3CrzeLpV6CxaGYtP7pYFwm7aVQpC1/PkjF3Q12eJ/MJK mzOAHYSrqXPBdK49u1wbxqAu6evMX+H6UrtXp42EDsQXpWdfgX11aZ38LWCvs9OuWv3z ScwOICSFNBSMp836skIGOjYF4tA+tF3jhB3opHAy49X0wL7dvOumyG6T2rwFvdj3L7NK 0hQf1Q+sUoT+CpJGfltrmzzlGfPO7qQO0UZMyt2e8GMmkg Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ACrzQf0mNaWijwgUvJfUtBVc6p9rZiKm2zuryNtbDF589wsSe1FQtqMD WMRrIGa4KNyxsczpRyb/WpM= X-Google-Smtp-Source: AMsMyM7R0rDpDT3el4Ev3YOVpxMX9C9F9MIQPo/50RN5/HqU5CEs71jvMHzQSIcDgdZuQUWDPu3SwA== X-Received: by 2002:a81:5d09:0:b0:369:efee:c76a with SMTP id r9-20020a815d09000000b00369efeec76amr29559562ywb.3.1667521570875; Thu, 03 Nov 2022 17:26:10 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a81:a053:0:b0:36a:2cc6:5e7e with SMTP id x80-20020a81a053000000b0036a2cc65e7els1349340ywg.7.-pod-prod-gmail; Thu, 03 Nov 2022 17:26:07 -0700 (PDT) X-Received: by 2002:a81:101:0:b0:354:fc2:ebe with SMTP id 1-20020a810101000000b003540fc20ebemr31258110ywb.21.1667521567347; Thu, 03 Nov 2022 17:26:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667521567; cv=none; d=google.com; s=arc-20160816; b=BRpMhq0Syh7w8ge7ny/9Ku6WgiqGl3LtziaoCIoc3fuF9yYBralTfWKUgYA0ea6ijq nY94+Q7jKODlN/vd4jmfttASGB9z9Wrtds4QHn1phob/NeaqAUqK/u3VDQcu/BILqva2 NR9F2UJ4iY4/3M1Ri0BBrAlhO3Kywh3tQwQqLyZ7bq5g5QZaLsMtcIJ8cqOcHUOnFOVR DL0cHWCXFklLYg4MbaRAMkAkB1P1zCoADnKtLr6Ga5YPcpsfbe/PUApbaspxI8fn9fqS nkUNHBp9N4YypWhyNRz3jQgMwg14NPyS/3xncFBtXRXBcCgoQgCTWkknj+0UDBa31rjA 57Ug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=0t5vjgD/HRKlPzlWPjeFJAwBStKdwI/TQrQJ8bMJCx8=; b=Ea74UYQxFZuLAmhA+2sFKruuZ8PW5Gg+CRlA1M+T3fCXcNZhzCA7F0I8BOSoRJamq2 Dr3nZGAVi4ws3uVZHv2f0OqmcyYQxsmlqXO/008/9WFSzVVRts03kMUg1kX/uo9pwtHj PhaJXt9VnrQmK5JVheTPuKvdpDP1ZgAXwk67KYffoKDhKxdx3sF0kMUi37CXAJNpyYOD HT2+wghiwec0R6Oaop2+wNj1f7i+gUEFPoN8qTmm9E8u2DoiEQLh4ueydjiAS2Go9JZ8 5gYXEaZ3jmAfSKedhK7rhYIk1/zdVFS66kPxN9Vmcj/dLhyFUCyCyJNHUgTHdyRgW0Ti XSHA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=O2dagMeo; spf=pass (google.com: domain of aireilly-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org designates 170.10.133.124 as permitted sender) smtp.mailfrom=aireilly-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Original-Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com. [170.10.133.124]) by gmr-mx.google.com with ESMTPS id bg16-20020a05690c031000b003704845f699si162052ywb.0.2022.11.03.17.26.07 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 03 Nov 2022 17:26:07 -0700 (PDT) Received-SPF: pass (google.com: domain of aireilly-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; Original-Received: from mail-vk1-f199.google.com (mail-vk1-f199.google.com [209.85.221.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-152-RO9rZjv0NSaZza_3TXwhXg-1; Thu, 03 Nov 2022 20:26:05 -0400 X-MC-Unique: RO9rZjv0NSaZza_3TXwhXg-1 Original-Received: by mail-vk1-f199.google.com with SMTP id u21-20020a056122061500b003b3f7cd2fdfso1526886vkp.18 for ; Thu, 03 Nov 2022 17:26:05 -0700 (PDT) X-Received: by 2002:a67:b205:0:b0:3a7:c128:124c with SMTP id b5-20020a67b205000000b003a7c128124cmr19721944vsf.84.1667521564931; Thu, 03 Nov 2022 17:26:04 -0700 (PDT) X-Received: by 2002:a67:b205:0:b0:3a7:c128:124c with SMTP id b5-20020a67b205000000b003a7c128124cmr19721934vsf.84.1667521564539; Thu, 03 Nov 2022 17:26:04 -0700 (PDT) In-Reply-To: <87h6zf698z.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org> X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Original-Sender: aireilly-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=O2dagMeo; spf=pass (google.com: domain of aireilly-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org designates 170.10.133.124 as permitted sender) smtp.mailfrom=aireilly-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.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:31686 Archived-At: --0000000000008292d605ec9a1ed3 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Trying this, but it's just passing the text of the admonition block through= : local stringify =3D (require 'pandoc.utils').stringify local admonitions =3D { warning =3D {pandoc.Str("!!! warning")}, note =3D {pandoc.Str("!!! note")}, tip =3D {pandoc.Str("!!! tip")}, important =3D {pandoc.Str("!!! important")}, caution =3D {pandoc.Str("!!! caution")} } function Writer (doc, opts) local filter =3D { Div =3D function (el) local admonition_text =3D admonitions[el.classes[1]] if admonition_text then table.insert(el.content, 1, pandoc.Para{ pandoc.Str(stringify(admonition_text)) }) local md =3D pandoc.write(pandoc.Pandoc(el.content), 'markdown') return pandoc.RawBlock('markdown', md):gsub('\n', ' \n') end end } return pandoc.write(doc:walk(filter), 'markdown', opts) end On Thu, Nov 3, 2022 at 9:03 PM Albert Krewinkel wrote: > You could try with `pandoc.write`. Probably something along the lines of > > ``` lua > local md =3D pandoc.write(pandoc.Pandoc(div.contents), 'markdown') > return md:gsub('\n', ' \n') > ``` > > (untested) > > Aidan Reilly writes: > > > Something like this copied from https://jmablog.com/post/ > > pandoc-filters/? My problem is understanding how to add the required > > indent to every line in the `elem` - If I stringify, I lose the > > markup (backticks, etc) in the content. > > > > function Div (elem) > > if FORMAT:match 'latex' then > > if elem.classes[1] =3D=3D "notes" then > > return { > > pandoc.RawBlock('latex', > '\\begin{tcolorbox}[colframe=3DApricot!20!white, colback=3DApricot!8!whit= e]'), > > elem, > > pandoc.RawBlock('latex', '\\end{tcolorbox}') > > } > > else > > return elem > > end > > end > > end > > > > > > On Thu, Nov 3, 2022 at 8:40 PM Aidan Reilly > > wrote: > > > > Hi John, sorry - yes I am targeting markdown. Ok I=E2=80=99ll try t= hat > > thanks. > > > > Aidan > > > > On Thu 3 Nov 2022 at 20:09, John MacFarlane < > > fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > I assume you=E2=80=99re targeting markdown? > > > > You could then just create a RawBlock with format =E2=80=9Cmark= down=E2=80=9D, > > and put this content in it with whatever indentation you > > like. > > > > > > > On Nov 3, 2022, at 9:14 AM, Aidan Reilly < > > aireilly-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> wrote: > > > > > > Hello! > > > > > > Trying to figure out how to use pandoc +fenced_div with a > > filter to transform this: > > > > > > ::: note > > > Here is the first line of this note. > > > > > > And the second, > > > > > > And the third! > > > ::: > > > > > > into this: > > > > > > !!! note > > > Here is the first line of this note. > > > > > > And the second, > > > > > > And the third! > > > > > > Struggling to understand if it is possible to "indent" > > elements using pandoc. The mkdocs markdown spec requires the > > body of notes to be indented by 4 spaces. Is there a way to > > apply indents without stringifying the content? > > > > > > Thanks! > > > > > > > > > -- > > > 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/ > > ddc82450-b82b-4b8f-9d5f-30c6a28c206fn%40googlegroups.com. > > > > -- > > You received this message because you are subscribed to a > > topic in the Google Groups "pandoc-discuss" group. > > To unsubscribe from this topic, visit https:// > > groups.google.com/d/topic/pandoc-discuss/65G0Kuih1wA/ > > unsubscribe. > > To unsubscribe from this group and all its topics, 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/ > > 7AF275BD-12EB-4424-84E5-1A45FF675520%40gmail.com. > > > > > > -- > > > > Aidan Reilly > > > > He/Him/His > > > > Senior Technical Writer, Telco (Cork, Ireland) > > > > aireilly-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org > > > > IM/GitHub: aireilly > > > > TEL: +353851261126 > > > > [logo] > > > > > > > > -- > > Aidan > > > -- > Albert Krewinkel > GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124 > > -- > You received this message because you are subscribed to a topic in the > Google Groups "pandoc-discuss" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/pandoc-discuss/65G0Kuih1wA/unsubscribe. > To unsubscribe from this group and all its topics, 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/87h6zf698z.fsf%40zeitkra= ut.de > . > > --=20 Aidan --=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/CAM4RMshtHUuFSHryQqAgquMduCd5xSM7c2CKnvR0H1%3Dzsg2xQQ%40mail= .gmail.com. --0000000000008292d605ec9a1ed3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Trying this, but it's just passing the=C2=A0text of th= e admonition=C2=A0block through:

local stringify =3D (require 'pandoc.utils').stringify

loc= al admonitions =3D {
=C2=A0 warning =C2=A0 =3D {pandoc.Str("!!! war= ning")},
=C2=A0 note =C2=A0 =C2=A0 =C2=A0=3D {pandoc.Str("!!! = note")},
=C2=A0 tip =C2=A0 =C2=A0 =C2=A0 =3D {pandoc.Str("!!! = tip")},
=C2=A0 important =3D {pandoc.Str("!!! important")= },
=C2=A0 caution =C2=A0 =3D {pandoc.Str("!!! caution")}
= =C2=A0 }

function Writer (doc, opts)
=C2=A0 local filter =3D {=C2=A0 =C2=A0 Div =3D function (el)
=C2=A0 =C2=A0 =C2=A0 local admoniti= on_text =3D admonitions[el.classes[1]]
=C2=A0 =C2=A0 =C2=A0 if admonitio= n_text then
=C2=A0 =C2=A0 =C2=A0 =C2=A0 table.insert(el.content, 1,
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 pandoc.Para{ pandoc.Str(stringify= (admonition_text)) })
=C2=A0 =C2=A0 =C2=A0 =C2=A0 local md =3D pandoc.wr= ite(pandoc.Pandoc(el.content), 'markdown')
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 return pandoc.RawBlock('markdown', md):gsub('\n', &#= 39; =C2=A0 =C2=A0\n')
=C2=A0 =C2=A0 =C2=A0 end
=C2=A0 =C2=A0 end<= br>=C2=A0 }
=C2=A0 return pandoc.write(doc:walk(filter), 'markdown&#= 39;, opts)
end


On Thu, Nov 3, 2022 at 9:03 PM Albert Kre= winkel <albert+pandoc@ze= itkraut.de> wrote:
You could try with `pandoc.write`. Probably something along the = lines of

``` lua
local md =3D pandoc.write(pandoc.Pandoc(div.contents), 'markdown')<= br> return md:gsub('\n', '=C2=A0 =C2=A0 \n')
```

(untested)

Aidan Reilly <a= ireilly-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> writes:

> Something like=C2=A0this copied from https://jmablog.com/post/
> pandoc-filters/? My problem is understanding how to add the required > indent to every line in the `elem` - If I stringify, I lose the
> markup (backticks, etc) in the content.
>
> function Div (elem)
>=C2=A0 =C2=A0if FORMAT:match 'latex' then
>=C2=A0 =C2=A0 =C2=A0if elem.classes[1] =3D=3D "notes" then >=C2=A0 =C2=A0 =C2=A0 =C2=A0return {
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0pandoc.RawBlock('latex', '= ;\\begin{tcolorbox}[colframe=3DApricot!20!white, colback=3DApricot!8!white]= '),
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0elem,
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0pandoc.RawBlock('latex', '= ;\\end{tcolorbox}')
>=C2=A0 =C2=A0 =C2=A0 =C2=A0}
>=C2=A0 =C2=A0 =C2=A0else
>=C2=A0 =C2=A0 =C2=A0 =C2=A0return elem
>=C2=A0 =C2=A0 =C2=A0end
>=C2=A0 =C2=A0end
> end
>
>
> On Thu, Nov 3, 2022 at 8:40 PM Aidan Reilly <aireilly-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
> wrote:
>
>=C2=A0 =C2=A0 =C2=A0Hi John, sorry - yes I am targeting markdown. Ok I= =E2=80=99ll try that
>=C2=A0 =C2=A0 =C2=A0thanks.=C2=A0
>=C2=A0 =C2=A0
>=C2=A0 =C2=A0 =C2=A0Aidan=C2=A0
>=C2=A0 =C2=A0
>=C2=A0 =C2=A0 =C2=A0On Thu 3 Nov 2022 at 20:09, John MacFarlane < >=C2=A0 =C2=A0 =C2=A0fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>=C2=A0 =C2=A0
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0I assume you=E2=80=99re targeting mar= kdown?
>=C2=A0 =C2=A0 =C2=A0 =C2=A0
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0You could then just create a RawBlock= with format =E2=80=9Cmarkdown=E2=80=9D,
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0and put this content in it with whate= ver indentation you
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0like.
>=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> On Nov 3, 2022, at 9:14 AM, Aida= n Reilly <
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0aireilly-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> wrote:
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0> Hello!
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0> Trying to figure out how to use = pandoc +fenced_div with a
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0filter to transform this:
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0> ::: note
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0> Here is the first line of this n= ote.
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0> And the second,
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0> And the third!
>=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> into this:
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0> !!! note
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0>=C2=A0 =C2=A0 =C2=A0Here is the f= irst line of this note.
>=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=A0And the secon= d,
>=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=A0And the third= !
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0> Struggling to understand if it i= s possible to "indent"
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0elements using pandoc. The mkdocs mar= kdown spec requires the
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0body of notes to be indented by 4 spa= ces.=C2=A0 Is there a way to
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0apply indents without stringifying th= e content?
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0> Thanks!
>=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 =C2=A0> --
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0> You received this message becaus= e you are subscribed to the
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Google Groups "pandoc-discuss&qu= ot; group.
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0> To unsubscribe from this group a= nd stop receiving emails
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0from it, send an email to
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0pandoc-discuss+unsubscribe@go= oglegroups.com.
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0> To view this discussion on the w= eb visit https://
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0groups.google.= com/d/msgid/pandoc-discuss/
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0ddc82450-b82b-4b8f-9d5f-30c6a28c206fn= %40googlegroups.com.
>=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=A0You received this message because you= are subscribed to a
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0topic in the Google Groups "pand= oc-discuss" group.
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0To unsubscribe from this topic, visit= https://
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0gr= oups.google.com/d/topic/pandoc-discuss/65G0Kuih1wA/
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0unsubscribe.
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0To unsubscribe from this group and al= l its topics, send an
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0email to pandoc-discuss+unsub= scribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0To view this discussion on the web vi= sit https://
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0groups.google.= com/d/msgid/pandoc-discuss/
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A07AF275BD-12EB-4424-84E5-1A45FF675520%= 40gmail= .com.
>=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=A0Aidan Reilly
>=C2=A0 =C2=A0
>=C2=A0 =C2=A0 =C2=A0He/Him/His
>=C2=A0 =C2=A0
>=C2=A0 =C2=A0 =C2=A0Senior Technical Writer, Telco (Cork, Ireland)
>=C2=A0 =C2=A0
>=C2=A0 =C2=A0 =C2=A0aireilly-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org
>=C2=A0 =C2=A0
>=C2=A0 =C2=A0 =C2=A0IM/GitHub:=C2=A0aireilly
>=C2=A0 =C2=A0
>=C2=A0 =C2=A0 =C2=A0TEL: +353851261126
>=C2=A0 =C2=A0
>=C2=A0 =C2=A0 =C2=A0[logo]=C2=A0 =C2=A0 =C2=A0 =C2=A0
>=C2=A0 =C2=A0
>
>
> --
> Aidan


--
Albert Krewinkel
GPG: 8eed e3e2 e8c5 6f18 81fe=C2=A0 e836 388d c0b2 1f63 1124

--
You received this message because you are subscribed to a topic in the Goog= le Groups "pandoc-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pandoc-discuss/65G0Kuih1wA/un= subscribe.
To unsubscribe from this group and all its topics, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/87h6zf6= 98z.fsf%40zeitkraut.de.



--
Aidan

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://group= s.google.com/d/msgid/pandoc-discuss/CAM4RMshtHUuFSHryQqAgquMduCd5xSM7c2CKnv= R0H1%3Dzsg2xQQ%40mail.gmail.com.
--0000000000008292d605ec9a1ed3--