From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32698 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: christophe dervieux Newsgroups: gmane.text.pandoc Subject: Format supported for pandoc.RawBlock() and `raw_attributes` Date: Thu, 25 May 2023 06:11:57 -0700 (PDT) Message-ID: <8f73cb8b-cd69-4f3a-805b-e63d8b2a1dbdn@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1256_1596668725.1685020317417" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="889"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDDJDKUZ7QORBHV5XWRQMGQE4PMUPPA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu May 25 15:12:02 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oi1-f191.google.com ([209.85.167.191]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1q2Al7-000Aak-Qm for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 25 May 2023 15:12:01 +0200 Original-Received: by mail-oi1-f191.google.com with SMTP id 5614622812f47-394323ee88asf546601b6e.2 for ; Thu, 25 May 2023 06:12:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1685020320; x=1687612320; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:message-id:to:from:date:sender:from:to:cc :subject:date:message-id:reply-to; bh=FS2141R5I8m9Ct9dU92bGt1XP5GDj9YdLd7NU6W7qqg=; b=Yvnf+ttTSW7cJouN2qJdFDyITNDb6z2oILUbt8Eg6X3h9f02isvlOtNU7v+4Abgbbt xyJDvS6KyzZP7+7r9f83pLaK2xEfMV8+mnnJLefxz2dd3mpmMD2tmr2SPlAtweMhs3aP DJp1jkcuc3Jh+ueufoZWpfJvS4NszWzBRBpZ4WRAZUq8itUgOUnUcUWkGqrnyRToLrDG 4P12Sain+oBICpIgL2cTW/hqbuVBA9VKZpO0qkAfKAM85qi4I0HuOQLYse3ocQyOT78x ARy6VKasLgrYL/BlBGwEGDe46AYuRdPlZtqERHuW8xY0VlEHdhyki2eBHjLrf7LvebZR DWeg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685020320; x=1687612320; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:message-id:to:from:date:from:to:cc:subject :date:message-id:reply-to; bh=FS2141R5I8m9Ct9dU92bGt1XP5GDj9YdLd7NU6W7qqg=; b=JubAKCEShtQxoxXkLA2Jm3E382oxxmx9tapKJx/Adq0s8+3Fel0xoTNL37oFUkvuaj 0GQjcMUr2JOxNr0Max3iI9TXNpfIRwrJOlCB/aj3sDgh9bnwolq5euhBPMRJvwGKTlnV AoQIUnn0x4622B8y+C/kOfXEoOwSFGOc5d14W8wE36h9FEpHYvFVR9vRgH0xEJAHuNcj LAIoo5UKE+4NJ3d1Klc2SY5wNhIurrdECPN2p8UtznVoC5uvN4woaTuQZue93kIteqJ1 ALwqUxYVBMiSYC80xTj2Cmpxpsji2DlWkTpjwQVFkdWnUusS2iRS3ELQ3L6IE2r4Qh1P eTPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685020320; x=1687612320; 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-sender:mime-version:subject:message-id:to:from:date :x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=FS2141R5I8m9Ct9dU92bGt1XP5GDj9YdLd7NU6W7qqg=; b=A3lpqUInpjCnYH5aGjDjiBgCrhocIq56NO7UMtSkmQOMFcHcNrS2jK2Ym0jAIeJrje hEVBt0ZkprrNtajNThmbl+6mDqQTxRjRro9fwznrQZjoRPXEJq3+zEiQWX6ydBiPDF/T sC/1StFkz+STCz7rP3D7lj12BBn7lVNQhxqYIfT5ok5XDrOwbGV2MbZ5u0sy19NkoWKi tZOD1/jyGNzTBvIvt6xtPcHGKHI7DWLKLbfdCS2iAsCaZWB5QTh+brWSH+fIZ/CYJKN8 TnPYmE507KcVS3oxmq7Et4T2oMfPBpzAJHwGw5cwtpD1YllbMFU0xs8TSCfi5o/MdKb5 Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AC+VfDwgwBlv10Js5XCnFmoVlKI41h4Q2uPZoUylQE/phB+QpGfJcKsf ce5AiixGhFZPVPYAN/aML0Y= X-Google-Smtp-Source: ACHHUZ5e5cdw27f3FcydX3DWIv29Jp+vrfhd2RkC7Xil1mhn9J5aOVU2Lq4eXeESPXDm6CUndk48TA== X-Received: by 2002:aca:3287:0:b0:396:4680:df15 with SMTP id y129-20020aca3287000000b003964680df15mr4302311oiy.2.1685020320659; Thu, 25 May 2023 06:12:00 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6820:1794:b0:555:2eab:378b with SMTP id bs20-20020a056820179400b005552eab378bls472432oob.1.-pod-prod-08-us; Thu, 25 May 2023 06:11:58 -0700 (PDT) X-Received: by 2002:aca:eac5:0:b0:398:5cab:b4e3 with SMTP id i188-20020acaeac5000000b003985cabb4e3mr832533oih.2.1685020317950; Thu, 25 May 2023 06:11:57 -0700 (PDT) X-Original-Sender: christophe.dervieux-Re5JQEeQqe8AvxtiuMwx3w@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:32698 Archived-At: ------=_Part_1256_1596668725.1685020317417 Content-Type: multipart/alternative; boundary="----=_Part_1257_1908478290.1685020317417" ------=_Part_1257_1908478290.1685020317417 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable >From documentation, it is not clear to me what is the format supported for= =20 pandoc.RawBlock and raw_attributes For raw_attributes, doc says=20 https://pandoc.org/MANUAL.html#extension-raw_attribute The format name should match the target format name (see -t/=E2=80=94to, ab= ove, for=20 a list, or use pandoc =E2=80=94list-output-formats) and pandoc.RawBlock only says format of content.=20 I would think that pandoc.RawBlock(FORMAT, text) would work, but FORMAT is= =20 The global FORMAT is set to the format of the pandoc writer being used=20 (html5, latex, etc.), so the behavior of a filter can be made conditional= =20 on the eventual output format. but it seems this don=E2=80=99t work in some case like reveajs ```{=3Drevealjs} content ```=20 does not get included in output, only using html works. Same with=20 pandoc.RawBlock Is this expected ? Or is this an issue to report ?=20 Thank you =E2=80=8B --=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/8f73cb8b-cd69-4f3a-805b-e63d8b2a1dbdn%40googlegroups.com. ------=_Part_1257_1908478290.1685020317417 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

From documentation, it is not clea= r to me what is the format supported for pandoc.RawBlock and For raw_attributes, doc says https://pandoc.org/MANUAL.html#extension-ra= w_attribute

The format name should match the target= format name (see -t/=E2=80=94to, above, for a list, or use pandoc =E2=80= =94list-output-formats)

and pandoc.RawBlock only says format of content.

I would think that pandoc.RawBlock(FORMAT, text) would work, but = FORMAT is

The global FORMAT is set to the format = of the pandoc writer being used (html5, latex, etc.), so the behavior of a = filter can be made conditional on the eventual output format.

but it seems this don=E2=80=99t work in= some case like reveajs ```{=3Drevealjs} content ```

does not get included in = output, only using html wo= rks. Same with pandoc.RawBlock

Is this expected ? Or is this an issue = to report ?

Thank you

=E2=80=8B

--
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://groups.google.com/d= /msgid/pandoc-discuss/8f73cb8b-cd69-4f3a-805b-e63d8b2a1dbdn%40googlegroups.= com.
------=_Part_1257_1908478290.1685020317417-- ------=_Part_1256_1596668725.1685020317417--