We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent53cf62c commitd2e1097Copy full SHA for d2e1097
src/utils/parse.ts
@@ -41,15 +41,13 @@ export function parseMdContent(md: string): TutorialFrame | never {
41
constsummaryMatch=parts
42
.shift()
43
.match(/^#\s(?<tutorialTitle>.*)[\n\r]+(?<tutorialDescription>[^]*)/);
44
-if(!summaryMatch.groups.tutorialTitle){
45
-thrownewError("Missing tutorial title");
+if(summaryMatch.groups.tutorialTitle){
+mdContent.summary.title=summaryMatch.groups.tutorialTitle.trim();
46
}
47
-mdContent.summary.title=summaryMatch.groups.tutorialTitle.trim();
48
49
-if(!summaryMatch.groups.tutorialDescription){
50
-thrownewError("Missing tutorial summary description");
+if(summaryMatch.groups.tutorialDescription){
+mdContent.summary.description=summaryMatch.groups.tutorialDescription.trim();
51
52
-mdContent.summary.description=summaryMatch.groups.tutorialDescription.trim();
53
54
// Identify each part of the content
55
parts.forEach((section:string)=>{