public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* prevent pandoc from accepting html tags in markdown
@ 2021-12-05 12:24 Pum Walters
       [not found] ` <c13d7640-ba3b-4735-ab82-bc938e4f664fn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Pum Walters @ 2021-12-05 12:24 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 830 bytes --]

Is it possible to prevent pandoc from accepting html tags in markdown?
Context: I'm processing HUGO (static site generator) input which is 
markdown with embedded HUGO function calls which look like:
{{<highlight prolog "linenos=false">}}
...
{{</highlight>}}
The closing tag isn't parsed by pandoc as one string but rather as a 
raw_inline html between {{ and }}. Can I turn the 'parse as embedded 
HTML'-feature off?

-- 
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/c13d7640-ba3b-4735-ab82-bc938e4f664fn%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 1175 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: prevent pandoc from accepting html tags in markdown
       [not found] ` <c13d7640-ba3b-4735-ab82-bc938e4f664fn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2021-12-05 18:32   ` John MacFarlane
       [not found]     ` <m2tufmhphf.fsf-d8241O7hbXoP5tpWdHSM3tPlBySK3R6THiGdP5j34PU@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: John MacFarlane @ 2021-12-05 18:32 UTC (permalink / raw)
  To: Pum Walters, pandoc-discuss


You can do

pandoc -f markdown-raw_html

This disables the raw_html extension.



Pum Walters <pum.walters-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:

> Is it possible to prevent pandoc from accepting html tags in markdown?
> Context: I'm processing HUGO (static site generator) input which is 
> markdown with embedded HUGO function calls which look like:
> {{<highlight prolog "linenos=false">}}
> ...
> {{</highlight>}}
> The closing tag isn't parsed by pandoc as one string but rather as a 
> raw_inline html between {{ and }}. Can I turn the 'parse as embedded 
> HTML'-feature off?
>
> -- 
> 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/c13d7640-ba3b-4735-ab82-bc938e4f664fn%40googlegroups.com.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: prevent pandoc from accepting html tags in markdown
       [not found]     ` <m2tufmhphf.fsf-d8241O7hbXoP5tpWdHSM3tPlBySK3R6THiGdP5j34PU@public.gmane.org>
@ 2021-12-05 19:45       ` Pum Walters
  0 siblings, 0 replies; 3+ messages in thread
From: Pum Walters @ 2021-12-05 19:45 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1572 bytes --]

Wow that was quick. Thanks!


On Sunday, December 5, 2021 at 7:33:13 PM UTC+1 John MacFarlane wrote:

>
> You can do
>
> pandoc -f markdown-raw_html
>
> This disables the raw_html extension.
>
>
>
> Pum Walters <pum.w...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
>
> > Is it possible to prevent pandoc from accepting html tags in markdown?
> > Context: I'm processing HUGO (static site generator) input which is 
> > markdown with embedded HUGO function calls which look like:
> > {{<highlight prolog "linenos=false">}}
> > ...
> > {{</highlight>}}
> > The closing tag isn't parsed by pandoc as one string but rather as a 
> > raw_inline html between {{ and }}. Can I turn the 'parse as embedded 
> > HTML'-feature off?
> >
> > -- 
> > 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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/pandoc-discuss/c13d7640-ba3b-4735-ab82-bc938e4f664fn%40googlegroups.com
> .
>

-- 
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/c69353e4-49e5-4cf9-a065-0c69fbfcc229n%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 2694 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-12-05 19:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-05 12:24 prevent pandoc from accepting html tags in markdown Pum Walters
     [not found] ` <c13d7640-ba3b-4735-ab82-bc938e4f664fn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-12-05 18:32   ` John MacFarlane
     [not found]     ` <m2tufmhphf.fsf-d8241O7hbXoP5tpWdHSM3tPlBySK3R6THiGdP5j34PU@public.gmane.org>
2021-12-05 19:45       ` Pum Walters

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).