PluginsKit icon indicating copy to clipboard operation
PluginsKit copied to clipboard

"No How to Use section" error when having two h2 tags with no content between

Open arian opened this issue 15 years ago • 0 comments

Hi,

I ran into this error when my readme file looked like this:

Plugin name
=========
some text

How to Use
-----------------
## Class: PluginName
some text

As you can see, there is no content between the How to Use header and the "Class: PluginName" header, but there is actually a How to Use section, but it starts with a header 2.

I added some text directly after the how to use header, and it worked.

I think this problem can be solved if you check if there is any content after the how to use header, for example by using preg_split or something.

arian avatar Apr 25 '10 14:04 arian