I currently use a script to create a markdown with this structure: # filename ```file-extension file-content ``` # ... Does your solution have advantages over this? Btw, is there a table of supported things I can put after the triple `s? Putting “el”, for example, did not activate EmacsLisp highlighting. Ps: By plain text, I mean text that always wraps, and keeps its source indentation. The kind of I thing I’ll see when I use `less` on a file. On Thu, Aug 15, 2019 at 9:59 PM Daniel Staal wrote: > On 8/15/19 1:08 PM, Rudi C wrote: > > I want to read source code on my Kindle, and I was hoping to just use > `pandoc -s -f txt *.py -o a.mobi` but it seems pandoc lacks a plain text > reader?! > > > > Define plain text. Do you just want it passed through with no changes? > Do you want emphasis? Do you want indents? Do you want wrapping? > Wrapping in some places but not others? > > Pandoc reads several different formats that look like plain text. > > In your case, I'd probably create a couple of files, each with just one > line: > > 00000.py: > ~~~{.python} > > ZZZZZZ.py > ~~~~ > > Then use `-f markdown` - that should enclose the whole thing inside a > fenced code block and have it treat the interior as python code. > > Daniel T. Staal > > -- > --------------------------------------------------------------- > This email copyright the author. Unless otherwise noted, you > are expressly allowed to retransmit, quote, or otherwise use > the contents for non-commercial purposes. This copyright will > expire 5 years after the author's death, or in 30 years, > whichever is longer, unless such a period is in excess of > local copyright law. > --------------------------------------------------------------- > > -- > You received this message because you are subscribed to a topic in the > Google Groups "pandoc-discuss" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/pandoc-discuss/DSRfQkWBlFE/unsubscribe. > To unsubscribe from this group and all its topics, 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/4be8dffb-2e8c-3ba3-d584-a06928a48af7%40usa.net > . > -- 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/CAE9z9A1PhS%3DxsySFLDMNUf8SPogT2Ka9SCoWE41XHYjmeKZFoA%40mail.gmail.com.