You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

utils.scm 315B

123456789101112
  1. (module utils (render-markdown replace-extension)
  2. (import
  3. scheme
  4. lowdown
  5. (chicken port)
  6. (chicken string))
  7. (define (replace-extension s old new)
  8. (string-append (string-chomp s old) new))
  9. (define (render-markdown content)
  10. (with-output-to-string (lambda () (markdown->html content)))))