You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -85,7 +89,7 @@ For example, the following two code samples will be considered to be equivalent:
85
89
```
86
90
87
91
**CAUTION!**<br>
88
-
**html-differ** does not check the validity of HTML, but compares them using the above shown criteria and specified options (see the list of possible [options](https://github.com/bem/html-differ/tree/master#options)).
92
+
**html-differ** does not check the validity of HTML, but compares them using the above shown criteria and specified options (see the list of possible [options](https://github.com/markedjs/html-differ/tree/master#options)).
89
93
90
94
## Install
91
95
@@ -269,9 +273,25 @@ For example, the following two code samples will be considered to be equivalent:
269
273
<spanid="blah">Text</span>
270
274
```
271
275
276
+
<!-- TOC:display:ignoreSelfClosingSlash -->
277
+
##### ignoreSelfClosingSlash: Boolean
278
+
279
+
Makes **html-differ** ignore tags' self closing slash during the comparison (default: `false`).
280
+
281
+
**Example**: `true`<br>
282
+
For example, the following two code samples will be considered to be equivalent:
283
+
284
+
```html
285
+
<imgsrc="blah.jpg" />
286
+
```
287
+
288
+
```html
289
+
<imgsrc="blah.jpg">
290
+
```
291
+
272
292
#### Presets
273
293
274
-
*[bem](https://github.com/bem/html-differ/blob/master/presets/bem.json) - sets predefined options for [BEM](http://bem.info/).
294
+
*[bem](https://github.com/markedjs/html-differ/blob/master/presets/bem.json) - sets predefined options for [BEM](http://bem.info/).
275
295
276
296
277
297
##### Usage
@@ -315,15 +335,15 @@ var logger = require('html-differ/lib/logger');
315
335
316
336
##### logger.getDiffText
317
337
318
-
**@param***{Array of objects}* - the result of the work of the method [htmlDiffer.diffHtml](https://github.com/bem/html-differ/tree/master#htmldifferdiffhtml)<br>
338
+
**@param***{Array of objects}* - the result of the work of the method [htmlDiffer.diffHtml](https://github.com/markedjs/html-differ/tree/master#htmldifferdiffhtml)<br>
319
339
**@param***{Object}* - options:<br>
320
340
321
341
***charsAroundDiff: Number** - the number of characters around the diff result between two HTML (default: `40`).
322
342
323
343
**@returns***{String}*
324
344
325
345
##### logger.logDiffText
326
-
**@param***{Array of objects}* - the result of the work of the method [htmlDiffer.diffHtml](https://github.com/bem/html-differ/tree/master#htmldifferdiffhtml)<br>
346
+
**@param***{Array of objects}* - the result of the work of the method [htmlDiffer.diffHtml](https://github.com/markedjs/html-differ/tree/master#htmldifferdiffhtml)<br>
327
347
**@param***{Object}* - options:<br>
328
348
329
349
***charsAroundDiff: Number** - the number of characters around the diff result between two HTML (default: `40`).
**html-differ** не проверяет валидность HTML, а сравнивает их по вышеуказанным критериям и заданным опциям (смотрите список возможных [опций](https://github.com/bem/html-differ/blob/master/README.ru.md#%D0%9E%D0%BF%D1%86%D0%B8%D0%B8)).
92
+
**html-differ** не проверяет валидность HTML, а сравнивает их по вышеуказанным критериям и заданным опциям (смотрите список возможных [опций](https://github.com/markedjs/html-differ/blob/master/README.ru.md#%D0%9E%D0%BF%D1%86%D0%B8%D0%B8)).
89
93
90
94
## Установка
91
95
@@ -268,9 +272,25 @@ Text
268
272
<spanid="blah">Text</span>
269
273
```
270
274
275
+
<!-- TOC:display:ignoreSelfClosingSlash -->
276
+
##### ignoreSelfClosingSlash: Boolean
277
+
278
+
**html-differ** игнорировать теги самозакрывающихся тегов во время сравнения (по умолчанию: `false`).
279
+
280
+
**Пример**: `true`<br>
281
+
Следующие два HTML будут считаться эквивалентными:
282
+
283
+
```html
284
+
<imgsrc="blah.jpg" />
285
+
```
286
+
287
+
```html
288
+
<imgsrc="blah.jpg">
289
+
```
290
+
271
291
#### Пресеты
272
292
273
-
*[bem](https://github.com/bem/html-differ/blob/master/presets/bem.json) - уставливает предопределенные опции для [БЭМ](http://ru.bem.info/).
293
+
*[bem](https://github.com/markedjs/html-differ/blob/master/presets/bem.json) - уставливает предопределенные опции для [БЭМ](http://ru.bem.info/).
274
294
275
295
276
296
##### Использование
@@ -313,7 +333,7 @@ var logger = require('html-differ/lib/logger');
313
333
314
334
##### logger.getDiffText
315
335
316
-
**@param***{Array of objects}* - результат работы метода [htmlDiffer.diffHtml](https://github.com/bem/html-differ/blob/master/README.ru.md#htmldifferdiffhtml)<br>
336
+
**@param***{Array of objects}* - результат работы метода [htmlDiffer.diffHtml](https://github.com/markedjs/html-differ/blob/master/README.ru.md#htmldifferdiffhtml)<br>
317
337
**@param***{Object}* - опции:<br>
318
338
319
339
***charsAroundDiff: Number** - количество символов перед отличием между HTML и после него (по умолчанию: `40`)
@@ -322,7 +342,7 @@ var logger = require('html-differ/lib/logger');
322
342
323
343
##### logger.logDiffText
324
344
325
-
**@param***{Array of objects}* - результат работы метода [htmlDiffer.diffHtml](https://github.com/bem/html-differ/blob/master/README.ru.md#htmldifferdiffhtml)<br>
345
+
**@param***{Array of objects}* - результат работы метода [htmlDiffer.diffHtml](https://github.com/markedjs/html-differ/blob/master/README.ru.md#htmldifferdiffhtml)<br>
326
346
**@param***{Object}* - опции:<br>
327
347
328
348
***charsAroundDiff: Number** - количество символов перед отличием между HTML и после него (по умолчанию: `40`)
0 commit comments