jsoverson/preprocess — pull request #29 by xax (2014-07-02 12:29:46+00:00)
Title: Added '<! @endif -->' syntax to allow valid blocks that are hidden by default

HTML blocks that are hidden by default have been introduced by @justmoon in #15 and released with version 2.0.0.

The un-preprocessed syntax
```HTML

```
then, though, is not [valid HTML](http://www.whatwg.org/specs/web-apps/current-work/multipage/syntax.html#comments) (nor XHTML/XML):
> **12.1.6 Comments**
> Comments must start with the four character sequence […] ().
(Emphasis added.)

So the first two consecutive dashes in `' are to be avoided.

My patch alters the syntax for any `@endif` in such way, that an initial `` instead of a `-->` (in such a case, this variant should be preferred!), but always (which probably is not-nice™).