update api docs parser

This commit is contained in:
rolux 2014-12-18 14:12:46 +00:00
parent 3dc1304447
commit c121f2b084

View file

@ -142,7 +142,8 @@ pandora.ui.apiDialog = function() {
$doc.html(
$doc.html()
.replace(/(takes \{|returns \{|note: |see: )/g, '<b>$1</b>')
.replace(/`(\w+?)`/g, '<b>$1</b>')
.replace(/`(?=\w)/g, '<b>')
.replace(/`(?=\W)/g, '</b>')
);
parts = $doc.html().split('<b>notes: </b>');
if (parts.length == 2) {