Re: Re: How to configure and use mod_markdown

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Is there some alternative around?

If you don't care about performance and want flexibility you can roll
your own with CGI.

httpd.conf:

AddHandler md2html .md
Action md2html /cgi-bin/md2html

cgi:
```
#!/bin/sh

printf "Content-Type: text/html\r\n\r\n"


if [ -f "$PATH_TRANSLATED" ]; then
  pandoc -t html5  $PATH_TRANSLATED
fi
```

Then you can put whatever extra logic prior to invoking pandoc to add
head or style elements.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux