Ivan Demidov

Results 239 comments of Ivan Demidov

@Jarvis2018 because this is not posthtml option https://github.com/posthtml/posthtml/blob/master/docs/core.md#posthtml-options

yes, in theory it should combine options from https://github.com/posthtml/posthtml-parser/blob/0db4129ec0be89d3278149a4f8140a0c97facd6e/src/index.ts#L10 We will be happy with your PR if you have time for it, but somewhere in the future we will transfer...

@gucong3000 Hi, ping me if this [comment](https://github.com/posthtml/posthtml/issues/221#issuecomment-311027879) helped you.

@gucong3000 Features of the parser do not yet allow to determine the presence `single-custom-tag` but this is a good idea. I will work on this. Thanks.

@gucong3000 if use in options `xmlMode: true` and use notation `` will be good, but result will be ``

related to https://github.com/posthtml/posthtml-parser/issues/3#issuecomment-351969011

@gucong3000 Hi, `singleTags` options can also take regular expression [see](https://github.com/posthtml/posthtml-render/blob/master/test/render.test.js#L236) As a result, your settings should come down to ```js { closingSingleTag: 'slash' , singleTags: [ /]*\/>/ ] } ```

these parameters are passed as options ```js const posthtml = require('posthtml') module.exports = async (html, config) => { return await posthtml() .process(html, { closingSingleTag: 'slash' }) .then(result => result.html) }...

```js const posthtml = require('posthtml') const html = '' posthtml() .process(html, { closingSingleTag: 'slash' }) .then(result => console.log(result.html)) // => ```

> @Scrum This won't work, since [regular expression only check tag name](https://github.com/posthtml/posthtml-render/blob/f9b61cd2c7f57891fbec632e2065ba400652ff3e/lib/index.js#L62). @yangmingshan Thank you for your report, I will try to review in the near future, but you can...