Skip to content

Documenting Pseudo Patterns #921

@bradfrost

Description

@bradfrost

I am using Pattern Lab Node 2.12.0 on Mac, with Node v7.9.0, using a Gulp Edition.

Expected Behavior

Creating a Markdown file that accompanies a pseudo pattern (i.e. creating alert~negative.md adjacent to alert~negative.json) should create accompanying documentation (such as title and description) for the negative alert pseudo-pattern.

Actual Behavior

Creating a file alert~negative.md that looks like this:

---
title: This is a negative alert 
---

Here is a negative description

Results in this output in Pattern Lab:

screenshot 2018-08-13 11 42 00

Steps to Reproduce
  1. Create a new pseudo pattern, such as button~secondary.json
  2. Create a markdown file adjacent to the pseudo pattern, such as button~secondary.md
  3. In the markdown file, create frontmatter updating the title title: This is a secondary button and description (raw markdown below the frontmatter)
  4. Rebuild Pattern Lab and view pseudo pattern.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions