The Wayback Machine - https://web.archive.org/web/20211228085838/https://github.com/jgm/pandoc/issues/6797
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RawInline and RawBlock with format 'plain' are not rendering when output to plain #6797

Open
averms opened this issue Nov 2, 2020 · 2 comments
Open

Comments

@averms
Copy link
Contributor

@averms averms commented Nov 2, 2020

I am experimenting with a filter that augments the plain text output of Pandoc and I am using RawInline quite often. One surprising thing I found out was that you can never make them render with the plain output.
Here is an example filter:

return {
  {
    Code = function(elem)
      return pandoc.RawInline('plain', 'balls')
    end,

    CodeBlock = function(elem)
      return pandoc.RawBlock('plain', 'doodoo')
    end
  }
}

If you run it with pandoc --verbose you get messages like

[INFO] Not rendering RawInline (Format "plain") "balls"
[INFO] Not rendering RawBlock (Format "plain") "doodoo"

Is this on purpose? If yes, can it be changed?

@tarleb
Copy link
Collaborator

@tarleb tarleb commented Nov 2, 2020

My first reply was nonsense, so I deleted it.
It seems that this behavior is intended; but it would be logical to me to output plain entries, so we might want to change this?

@jgm
Copy link
Owner

@jgm jgm commented Nov 2, 2020

Yes, I think it would be fine to emit raw content marked as plain in plain output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment