handle inline code in apple dev doc

main
Lee Hanken 2022-05-02 12:29:41 +01:00
parent b3e286a952
commit c8207aa737
1 changed files with 11 additions and 2 deletions

View File

@ -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";
}
}
}
});