monarch-initiative / phenogrid

The phenogrid widget
13 stars 14 forks source link

Generating index.html on Mac causes unwanted # signs #144

Closed yuanzhou closed 9 years ago

yuanzhou commented 9 years ago

When generating index.html on Mac, the source code will contain # signs in the headings from the README.md. Everything was fine if generating the bundle on Linux (I tried CentOS with no issues).

For example, in README.md,

#About Phenogrid

will be converted to

<p>#About Phenogrid</p>

using marked on Mac.

While it looks like

<h1 id="about-phenogrid">About Phenogrid</h1>

when generated on Linux.

yuanzhou commented 9 years ago

Not sure if it's because there's no single space between the # and the heading content. Will

# About Phenogrid

resolve this issue? It was correct when I merged your PR couple weeks ago. @DoctorBud, can you please help me test this out since I don't have a Mac at work? Thx!

yuanzhou commented 9 years ago

Tested this with Harry, adding a whitespace after each # for the headings solved this issue.