Re: Re: How to configure and use mod_markdown
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: users@xxxxxxxxxxxxxxxx, bo.berglund@xxxxxxxxx
- Subject: Re: Re: How to configure and use mod_markdown
- From: Eric Covener <covener@xxxxxxxxx>
- Date: Thu, 13 Jan 2022 15:03:16 -0500
- In-reply-to: <anv0ugpio4q0btc4k6rf3fe55k3pjpgs4d@4ax.com>
- Reply-to: users@xxxxxxxxxxxxxxxx
> 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]