@pnp/cli-microsoft365 7.4.0-beta.4388d3c → 7.4.0-beta.5c123d7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/allCommands.json +1 -1
- package/allCommandsFull.json +1 -1
- package/dist/cli/cli.js +1 -0
- package/dist/utils/md.js +2 -2
- package/npm-shrinkwrap.json +180 -418
- package/package.json +8 -8
package/dist/cli/cli.js
CHANGED
|
@@ -134,6 +134,7 @@ async function execute(rawArgs) {
|
|
|
134
134
|
if (validationResult !== true) {
|
|
135
135
|
return cli.closeWithError(validationResult, cli.optionsFromArgs, true);
|
|
136
136
|
}
|
|
137
|
+
cli.optionsFromArgs = removeShortOptions(cli.optionsFromArgs);
|
|
137
138
|
const end = process.hrtime.bigint();
|
|
138
139
|
timings.core.push(Number(end - start));
|
|
139
140
|
try {
|
package/dist/utils/md.js
CHANGED
|
@@ -13,8 +13,8 @@ function convertHeadings(md) {
|
|
|
13
13
|
});
|
|
14
14
|
}
|
|
15
15
|
function convertAdmonitions(md) {
|
|
16
|
-
const regex = new RegExp(/^:::(\w+)([\s\S]*?):::$/, 'gm');
|
|
17
|
-
return md.replace(regex, (_, label, content) => label.toLocaleUpperCase() + EOL + EOL + content.trim());
|
|
16
|
+
const regex = new RegExp(/^:::(\w+)(?:\[([^\]]+)\])?([\s\S]*?):::$/, 'gm');
|
|
17
|
+
return md.replace(regex, (_, label, title, content) => label.toLocaleUpperCase() + (title ? EOL + EOL + title : '') + EOL + EOL + content.trim());
|
|
18
18
|
}
|
|
19
19
|
function includeContent(md, rootFolder) {
|
|
20
20
|
const mdxImports = [
|