From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32221 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Brian Granger Newsgroups: gmane.text.pandoc Subject: Re: Simplified Markdown with no HTML tags Date: Wed, 22 Feb 2023 23:05:36 -0800 (PST) Message-ID: <71a7bdeb-b8a7-461c-b70b-7452bb067f02n@googlegroups.com> References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_10606_1415557788.1677135936342" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37416"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDV7D27VRUPRBQNA3SPQMGQEZZQWGAY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Feb 23 08:05:41 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oa1-f56.google.com ([209.85.160.56]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pV5fg-0009Zy-UO for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 23 Feb 2023 08:05:40 +0100 Original-Received: by mail-oa1-f56.google.com with SMTP id 586e51a60fabf-1720eab793asf4575289fac.14 for ; Wed, 22 Feb 2023 23:05:40 -0800 (PST) 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-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :sender:from:to:cc:subject:date:message-id:reply-to; bh=j5obC9MGsKRC3TAWRsCBsyy4qNL/+Bnqw3+SA8+CUb4=; b=SCI/6sgXr6I6FYZN/DLsKaE9QiI7u9WaqthxiIokWMFvyx1bcNxxnzSPVkysh3rbPG CkE9wSPhq7fX5hW1/54Urtq1YN68T0C0MZhTSVmVv25icbxKPaqdbgyvbSPk05rz01R4 uCTnV1L/HFb+tPrEPgNbzX2G49sI3sNBixtu3DvVqpzzFZM0o2DJq9ZjD7DdcRekCDi5 0Wcfp8nKxME8H70V+C3tG/ecKZtlqMcObSTIfF+q6VMyK79zs+gDO+cLFsGjfISyMQwb zkTu/jK1GVQmPYVSFpVnQZNfUJGmjn32jfNbOiPbe/rbOEEIqrGTPyeF6sNWIhjFhQOu +UbQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=j5obC9MGsKRC3TAWRsCBsyy4qNL/+Bnqw3+SA8+CUb4=; b=PIGCCHi78yEnXhPgfriyCFrKCYrmpCNbN85aB/sO7Dz6PfoyX0Y2hK4dpVJ6mp1PYy VwkhPmnwiEiIrGF12y7Id+gki501lw4S9PfMKQG0bn1yDau08q5e94XF0mDXPdr1gtNY 9h2hpVh3sj/ByR1xWVAERwyBSTMIDMoJLY2AtAvyS5L//ynU2gqcR9rtWLgvQcNxasso SglCXj0KRwMJZzL+Oq//tqcmTgf39Ps2mKM98YL4yQ1+OlzpomZYbLbMij3P3THLXOIk zvZzvhoFCDHneEQXDCcjDs3oL8WWUA5wI/B8hgv+ptR23SSbwLflatNhDTYS3XuWAfYq HALQ== 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-sender:mime-version:subject:references:in-reply-to :message-id:to:from:date:x-gm-message-state:sender:from:to:cc :subject:date:message-id:reply-to; bh=j5obC9MGsKRC3TAWRsCBsyy4qNL/+Bnqw3+SA8+CUb4=; b=MbpcblZpu226XaXqEVOmaSoPha/6au7UftGKWfxDDDc0Gp1HqI2IWOOM3E8f2pKu+h jkBmoEaPGKygwVC31Z/hWLygNQaE3/tdrA6EaSyzdbVK53YTZ3U8IHInVdGA4jAAGpwi NMGmF+hz+TGcITDoll+l58uIQMJoyLruT6KUEuSlxmNp/NhOELePtzGNZkHsmlrETyY2 9ugU9Wxdw6mDWyScwuWOGpnU0vbUPRlRe+05Ajzpu3U8AAkvB9eDrQwlEsfpRTQhjMBX styKjx65IaR6TTN+LXoyOu6WSaDYvmghruv+dbOUffWPdrB87SrWWl+Y9KJC0JP7vNgk B/TA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AO0yUKXNqcfQ8NoKDmf/RHI4K22mIst/2gEJTWNDX5VBk08eU36ufM2x ll49bdbUpnDs4tRt3pl4Vw0= X-Google-Smtp-Source: AK7set94u+LgqDK1XmKKOv/X3Z73a1z1IYYB7HR9drd7jXPX5RkK4APibECD0+b5Js7cmPdkUjtTlA== X-Received: by 2002:a05:6808:331a:b0:37d:c79f:8e61 with SMTP id ca26-20020a056808331a00b0037dc79f8e61mr759239oib.123.1677135939722; Wed, 22 Feb 2023 23:05:39 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6870:be8a:b0:172:5abc:c515 with SMTP id nx10-20020a056870be8a00b001725abcc515ls1836128oab.1.-pod-prod-gmail; Wed, 22 Feb 2023 23:05:37 -0800 (PST) X-Received: by 2002:a05:6870:ac1f:b0:163:36d5:35db with SMTP id kw31-20020a056870ac1f00b0016336d535dbmr2396143oab.113.1677135937208; Wed, 22 Feb 2023 23:05:37 -0800 (PST) In-Reply-To: X-Original-Sender: ellisonbg-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:32221 Archived-At: ------=_Part_10606_1415557788.1677135936342 Content-Type: multipart/alternative; boundary="----=_Part_10607_666707579.1677135936342" ------=_Part_10607_666707579.1677135936342 Content-Type: text/plain; charset="UTF-8" Looks like asking the question was enough for me to see it in a new light. My mistake was applying the extension to the output format rather than the input format. Thus, the following works: pandoc -f html-native_divs-native_spans -t markdown But this doesn't: pandoc -f html -t markdown-native_divs-native_spans I don't understand how to think about when to apply extension to the input versus the output format, but I do have a solution that enables me to move forward. Cheers, Brian On Wednesday, February 22, 2023 at 10:53:22 PM UTC-8 Brian Granger wrote: > Hi all, > > I am working on a usage case where I want to generate simplified, clean > Markdown without any explicit HTML tags or extended syntax such as the > fenced divs syntax (:::::). I only need to preserve the basic content of > the HMTL such as section headers, paragraphs, links, code blocks, etc. and > don't need (or want) any of extra content that would be put into HTML tags. > I have played with different Markdown format in Pandoc, filters, and > existing extensions, but haven't been able to achieve this yet. Does anyone > have any ideas or tips of things to try? > > Thank you! > > Cheers, > > Brian > -- 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/71a7bdeb-b8a7-461c-b70b-7452bb067f02n%40googlegroups.com. ------=_Part_10607_666707579.1677135936342 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Looks like asking the question was enough for me to see it in a new li= ght. My mistake was applying the extension to the output format rather than= the input format. Thus, the following works:

pandoc -f html-native_divs-native_spans -t markdown=

But this = doesn't:

pandoc -f html -t markdown-native_divs= -native_spans

=
I don't understand how to th= ink about when to apply extension to the input versus the output format, bu= t I do have a solution that enables me to move forward.

=
Cheers,
<= span>
Brian



On Wednesday, February 22, 2= 023 at 10:53:22 PM UTC-8 Brian Granger wrote:
Hi all,

I = am working on a usage case where I want to generate simplified, clean Markd= own without any explicit HTML tags or extended syntax such as the fenced di= vs syntax (:::::). I only need to preserve the ba= sic content of the HMTL such as section headers, paragraphs, links, code bl= ocks, etc. and don't need (or want) any of extra content that would be = put into HTML tags. I have played with different Markdown format in Pandoc,= filters, and existing extensions, but haven't been able to achieve thi= s yet. Does anyone have any ideas or tips of things to try?
<= br>
Thank you!

Cheers,

Brian

--
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/71a7bdeb-b8a7-461c-b70b-7452bb067f02n%40googlegroups.= com.
------=_Part_10607_666707579.1677135936342-- ------=_Part_10606_1415557788.1677135936342--