hexojs / hexo-html-minifier

Minify HTML files with HTMLMinifier.
MIT License
27 stars 12 forks source link

ignore `<!--more--> ` ? #6

Closed lilonghe closed 5 years ago

lilonghe commented 8 years ago

i use it, and <!--more--> is ignore ? it's will display all content.

tomap commented 6 years ago

I believe adding the following configuration will solve your issue:

  ignoreCustomComments: [/^\s*more/]

I picked that from hexo-filter-cleanup: https://github.com/mamboer/hexo-filter-cleanup/blob/master/index.js#L21

Will add that to the doc in PR #8