mpetrovich / stylemark

Generate interactive style guides from Markdown.
MIT License
218 stars 35 forks source link

Example name is converted to kebab-case when generating html file, but it is not converted when it is used in the iframe/anchor to reference the said file #94

Open mbehzad opened 4 years ago

mbehzad commented 4 years ago

When using external example files, when the examle name is for example in camelCase, the generetad file name is kebab-case (generator.js:245) but the iframes src path has the original camelCase name in it (generator.js:192). Therefor the html file can't be loaded.

example:

---
name: mainNavigation
---

```mainNavigation:mainNavigation.html
\```

generated filename: main-navigation-main-navigation.html

iframe / anchor url: main-navigation-mainNavigation.html