gemstash icon indicating copy to clipboard operation
gemstash copied to clipboard

manpages contain `<!-- Automatically generated by Pandoc -->`

Open technicalpickles opened this issue 1 year ago • 2 comments
trafficstars

I noticed this while verifying https://github.com/rubygems/gemstash/issues/396 locally, but it seems to also affect the released gemstash:

CleanShot 2024-08-05 at 09 10 31

Seems to come from this template: https://github.com/jgm/pandoc-templates/blob/3430359b4c688dbedaa23d76575184191a12c4d9/default.man#L4-L7

I only looked briefly, but I haven't found an option to toggle it

technicalpickles avatar Aug 05 '24 13:08 technicalpickles

Looks like `--variable "pandoc-version=" is enough to toggle it. docs on the variable, but unclear if there's any other side effects.

technicalpickles avatar Aug 05 '24 13:08 technicalpickles

Um, we add that string ourselves! doc.rake has a line

::File.write to_file, "<!-- Automatically generated by Pandoc -->\n#{content}"

olleolleolle avatar Aug 06 '24 06:08 olleolleolle