stylemark icon indicating copy to clipboard operation
stylemark copied to clipboard

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

Open mbehzad opened this issue 5 years ago • 0 comments

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

mbehzad avatar May 04 '20 15:05 mbehzad