jbt / docker

Documentation generator
http://jbt.github.com/docker
MIT License
234 stars 56 forks source link

Add a hook to transform text prior to saving .html #65

Open iabw opened 10 years ago

iabw commented 10 years ago

I would like to be able to hook into code-block text before it gets syntax highlighted. This is similar to #59 but technically very different, I think.

I hacked docker.js to replace the module names in my define and require calls with links to the proper file. I find it super useful, but I had to add code in several (seemingly) arbitrary places to make it work.

It's not ready to bring in, but I could get what I wrote on a fork if someone wanted to check it out and try to write something better.