build(aio): output {@example} tags as <code-example> elements (#15382)

This commit is contained in:
Pete Bacon Darwin
2017-03-22 20:24:40 +00:00
committed by Igor Minar
parent c58499786c
commit 8b4edcc7ad
6 changed files with 118 additions and 39 deletions

View File

@ -39,7 +39,10 @@ module.exports = function parseArgString() {
} else {
if (arg.substr(arg.length - 1) === '=') {
key = arg.substr(0, arg.length - 1);
// remove leading '-' if it exists.
// remove leading '-' (or '--') if it exists.
if (key.substr(0, 1) == '-') {
key = key.substr(1);
}
if (key.substr(0, 1) == '-') {
key = key.substr(1);
}