* Raw content with "plain" as format
@ 2019-01-10 15:16 BP Jonsson
[not found] ` <7e178a8a-8ce8-1e7f-e5d9-b6c02c6c1d59-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: BP Jonsson @ 2019-01-10 15:16 UTC (permalink / raw)
To: pandoc-discuss
Unfortunately it still doesn't work to use `plain` as the format
for raw content, i.e. something like
``````
```{=plain}
Some plain-specific content here
```
``````
outputs nothing even with `-w plain`. You still have to use a
filter which converts the raw content to Str elements when
outputting plain. This is pretty annoying and somewhat error
prone. I hope this is easy to fix and that someone is willing.
FYI my use case is that I have a couple of "custom writers"
implemented as filters written in Perl which modify the AST so
that plain output looks like what I want, which may seem a bit
outré, but I still think it should be possible to specify `plain`
as raw format regardless of how I want to use it.
/bpj
--
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/7e178a8a-8ce8-1e7f-e5d9-b6c02c6c1d59%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Raw content with "plain" as format
[not found] ` <7e178a8a-8ce8-1e7f-e5d9-b6c02c6c1d59-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2019-01-10 19:56 ` John MacFarlane
0 siblings, 0 replies; 2+ messages in thread
From: John MacFarlane @ 2019-01-10 19:56 UTC (permalink / raw)
To: BP Jonsson, pandoc-discuss
Just pushed a commit fixing this...
BP Jonsson <bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
> Unfortunately it still doesn't work to use `plain` as the format
> for raw content, i.e. something like
>
> ``````
> ```{=plain}
> Some plain-specific content here
> ```
> ``````
>
> outputs nothing even with `-w plain`. You still have to use a
> filter which converts the raw content to Str elements when
> outputting plain. This is pretty annoying and somewhat error
> prone. I hope this is easy to fix and that someone is willing.
>
> FYI my use case is that I have a couple of "custom writers"
> implemented as filters written in Perl which modify the AST so
> that plain output looks like what I want, which may seem a bit
> outré, but I still think it should be possible to specify `plain`
> as raw format regardless of how I want to use it.
>
> /bpj
>
> --
> 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/7e178a8a-8ce8-1e7f-e5d9-b6c02c6c1d59%40gmail.com.
> For more options, visit https://groups.google.com/d/optout.
--
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/yh480ko98o1e3y.fsf%40johnmacfarlane.net.
For more options, visit https://groups.google.com/d/optout.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-01-10 19:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-10 15:16 Raw content with "plain" as format BP Jonsson
[not found] ` <7e178a8a-8ce8-1e7f-e5d9-b6c02c6c1d59-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2019-01-10 19:56 ` John MacFarlane
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).