Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions core/lib/pattern_assembler.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,11 @@ var pattern_assembler = function () {
currentPattern.patternDescExists = true;
currentPattern.patternDesc = markdownObject.markdown;


//Add all markdown to the currentPattern, including frontmatter
currentPattern.allMarkdown = markdownObject;


//consider looping through all keys eventually. would need to blacklist some properties and whitelist others
if (markdownObject.state) {
currentPattern.patternState = markdownObject.state;
Expand All @@ -182,6 +187,9 @@ var pattern_assembler = function () {
if (markdownObject.tags) {
currentPattern.tags = markdownObject.tags;
}
if (markdownObject.title) {
currentPattern.patternName = markdownObject.title;
}
if (markdownObject.links) {
currentPattern.links = markdownObject.links;
}
Expand Down