handle inline code in apple dev doc
parent
b3e286a952
commit
c8207aa737
|
@ -131,6 +131,10 @@ module.exports = {
|
|||
inline_text += this.dev_references[inline.identifier].title;
|
||||
}
|
||||
}
|
||||
} else if (inline.type == 'codeVoice') {
|
||||
if (typeof inline.code !== 'undefined') {
|
||||
inline_text += "`"+inline.code+"`";
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -155,6 +159,11 @@ module.exports = {
|
|||
text += n + " " + this.process_content_section(list_item);
|
||||
});
|
||||
}
|
||||
} else if (content.type == 'heading') {
|
||||
if (typeof content.level !== 'undefined' && typeof content.text !== 'undefined') {
|
||||
text += "#".repeat(content.level);
|
||||
text += " " + content.text + "\n\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue