Skip to content

Commit 445a14e

Browse files
committed
Merge branch 'jdagerot-Read_title_from_MD' into dev
2 parents 2226292 + 1570e88 commit 445a14e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

core/lib/pattern_assembler.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,11 @@ var pattern_assembler = function () {
166166
currentPattern.patternDescExists = true;
167167
currentPattern.patternDesc = markdownObject.markdown;
168168

169+
170+
//Add all markdown to the currentPattern, including frontmatter
171+
currentPattern.allMarkdown = markdownObject;
172+
173+
169174
//consider looping through all keys eventually. would need to blacklist some properties and whitelist others
170175
if (markdownObject.state) {
171176
currentPattern.patternState = markdownObject.state;
@@ -182,6 +187,9 @@ var pattern_assembler = function () {
182187
if (markdownObject.tags) {
183188
currentPattern.tags = markdownObject.tags;
184189
}
190+
if (markdownObject.title) {
191+
currentPattern.patternName = markdownObject.title;
192+
}
185193
if (markdownObject.links) {
186194
currentPattern.links = markdownObject.links;
187195
}

0 commit comments

Comments
 (0)