Skip to content

Commit

Permalink
Merge pull request #402 from jrvidal/custom-languages
Browse files Browse the repository at this point in the history
Checks custom languages in literate mode
  • Loading branch information
jashkenas authored Mar 15, 2019
2 parents 9874ef3 + d3da6e9 commit 0222416
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
7 changes: 4 additions & 3 deletions docco.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion docco.litcoffee
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,8 @@ file extension. Detect and tag "literate" `.ext.md` variants.
lang = config.languages?[ext] or languages[ext]
if lang and lang.name is 'markdown'
codeExt = path.extname(path.basename(source, ext))
if codeExt and codeLang = languages[codeExt]
codeLang = config.languages?[codeExt] or languages[codeExt]
if codeExt and codeLang
lang = _.extend {}, codeLang, {literate: yes}
lang
Expand Down

0 comments on commit 0222416

Please sign in to comment.