Ack I forgot the attachments! Typical... :-) On 2022-01-15 15:41, BPJ wrote: > Here with pandoc 2.16.2 `[TEXT](URL)` is automatically turned into `TEXT > ` in plain output, being smart enough to do the right thing if the > URL appears in the link text or if it was `` already. > > Anyway attached is a Lua filter which I use to get the same effect in > other output formats.  Unless you are running a very old version of > pandoc it should do what you want unless pandoc does it already. > > On 2022-01-14 12:20, Peter Mueller wrote: >> Hello together. >> >> I'm working on a project where we use one input markdown file to create >> HTML but also TXT files. >> The problem I have is with markdown hyperlinks in the form of [](). >> >> While for the output format html they are kept: >> *$ echo "prefix [this is a link](www.google.de) suffix" | pandoc -f >> markdown -t html* >> *

prefix this is a link suffix

* >> >> the url is completely removed for plain output: >> *$ echo "prefix [this is a link](www.google.de) suffix" | pandoc -f >> markdown -t plain* >> *prefix this is a link suffix* >> >> Is there a way/plugin to keep the url within the plain output? >> (e.g.  by keeping the markdown  [this is a link](www.google.de) as it is, >> but handling all other markdown as usual?) >> >> Thank you >> Peter >> > -- 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/90b5b9c0-3597-372e-5436-99a6f0c41d2f%40gmail.com.