forked from 0x2620/pandora
update api docs parser
This commit is contained in:
parent
3dc1304447
commit
c121f2b084
1 changed files with 2 additions and 1 deletions
|
@ -142,7 +142,8 @@ pandora.ui.apiDialog = function() {
|
||||||
$doc.html(
|
$doc.html(
|
||||||
$doc.html()
|
$doc.html()
|
||||||
.replace(/(takes \{|returns \{|note: |see: )/g, '<b>$1</b>')
|
.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>');
|
parts = $doc.html().split('<b>notes: </b>');
|
||||||
if (parts.length == 2) {
|
if (parts.length == 2) {
|
||||||
|
|
Loading…
Reference in a new issue