Skip to content

Commit 51afdf5

Browse files
committed
Regenerate TOC
1 parent 574d029 commit 51afdf5

2 files changed

Lines changed: 66 additions & 54 deletions

File tree

README.md

Lines changed: 33 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -3,33 +3,33 @@
33
Compares two HTML.
44

55
<!-- TOC -->
6-
* [The comparison algorithm](#the-comparison-algorithm)
7-
* [Install](#install)
8-
* [API](#api)
9-
* [HtmlDiffer](#htmldiffer)
10-
* [Options](#options)
11-
* [ignoreAttributes: [Array]](#ignoreattributes-array)
12-
* [compareAttributesAsJSON: [Array]](#compareattributesasjson-array)
13-
* [ignoreWhitespaces: Boolean](#ignorewhitespaces-boolean)
14-
* [ignoreComments: Boolean](#ignorecomments-boolean)
15-
* [ignoreEndTags: Boolean](#ignoreendtags-boolean)
16-
* [ignoreDuplicateAttributes: Boolean](#ignoreduplicateattributes-boolean)
17-
* [Presets](#presets)
18-
* [Usage](#usage)
19-
* [Methods](#methods)
20-
* [htmlDiffer.diffHtml](#htmldifferdiffhtml)
21-
* [htmlDiffer.isEqual](#htmldifferisequal)
22-
* [Logger](#logger)
23-
* [Methods](#methods-1)
24-
* [logger.getDiffText](#loggergetdifftext)
25-
* [logger.logDiffText](#loggerlogdifftext)
26-
* [Example](#example)
27-
* [Usage as a program](#usage-as-a-program)
28-
* [Example](#example-1)
29-
* [Configuration file](#configuration-file)
30-
* [Masks](#masks)
31-
* [Syntax](#syntax)
32-
* [Screening](#screening)
6+
- [The comparison algorithm](#the-comparison-algorithm)
7+
- [Install](#install)
8+
- [API](#api)
9+
- [HtmlDiffer](#htmldiffer)
10+
- [Options](#options)
11+
- [ignoreAttributes](#ignoreattributes-array)
12+
- [compareAttributesAsJSON](#compareattributesasjson-array)
13+
- [ignoreWhitespaces](#ignorewhitespaces-boolean)
14+
- [ignoreComments](#ignorecomments-boolean)
15+
- [ignoreEndTags](#ignoreendtags-boolean)
16+
- [ignoreDuplicateAttributes](#ignoreduplicateattributes-boolean)
17+
- [Presets](#presets)
18+
- [Usage](#usage)
19+
- [Methods](#methods)
20+
- [htmlDiffer.diffHtml](#htmldifferdiffhtml)
21+
- [htmlDiffer.isEqual](#htmldifferisequal)
22+
- [Logger](#logger)
23+
- [Methods](#methods-1)
24+
- [logger.getDiffText](#loggergetdifftext)
25+
- [logger.logDiffText](#loggerlogdifftext)
26+
- [Example](#example)
27+
- [Usage as a program](#usage-as-a-program)
28+
- [Example](#example-1)
29+
- [Configuration file](#configuration-file)
30+
- [Masks](#masks)
31+
- [Syntax](#syntax)
32+
- [Screening](#screening)
3333

3434
<!-- TOC END -->
3535

@@ -106,6 +106,7 @@ where `options` is an object.
106106

107107
#### Options
108108

109+
<!-- TOC:display:ignoreAttributes -->
109110
##### ignoreAttributes: [Array]
110111

111112
Sets what kind of respective attributes' content will be ignored during the comparison (default: `[]`).
@@ -123,6 +124,7 @@ The following two code samples will be considered to be equivalent:
123124
<input id="sfsdfksdf">
124125
```
125126

127+
<!-- TOC:display:compareAttributesAsJSON -->
126128
##### compareAttributesAsJSON: [Array]
127129

128130
Sets what kind of respective attributes' content will be compared as JSON objects, but not as strings (default: `[]`).<br>
@@ -151,6 +153,7 @@ The following two code samples will be considered to be equivalent:
151153
The first element of the array could be written in a short form as string:<br>
152154
`['data', { name: 'onclick', isFunction: true }]`.
153155

156+
<!-- TOC:display:ignoreWhitespaces -->
154157
##### ignoreWhitespaces: Boolean
155158

156159
Makes **html-differ** ignore whitespaces (spaces, tabs, new lines etc.) during the comparison (default: `true`).
@@ -183,6 +186,7 @@ The following two code samples will be considered to be equivalent:
183186

184187
```
185188

189+
<!-- TOC:display:ignoreComments -->
186190
##### ignoreComments: Boolean
187191

188192
Makes **html-differ** ignore HTML comments during the comparison (default: `true`).
@@ -232,6 +236,7 @@ Text
232236
</html>
233237
```
234238

239+
<!-- TOC:display:ignoreEndTags -->
235240
##### ignoreEndTags: Boolean
236241

237242
Makes **html-differ** ignore end tags during the comparison (default: `false`).
@@ -247,6 +252,7 @@ The following two code samples will be considered to be equivalent:
247252
<span>Text</spane>
248253
```
249254

255+
<!-- TOC:display:ignoreDuplicateAttributes -->
250256
##### ignoreDuplicateAttributes: Boolean
251257

252258
Makes **html-differ** ignore tags' duplicate attributes during the comparison.<br>

README.ru.md

Lines changed: 33 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -3,33 +3,33 @@
33
Сравнивает два HTML.
44

55
<!-- TOC -->
6-
* [Алгоритм сравнения](#Алгоритм-сравнения)
7-
* [Установка](#Установка)
8-
* [API](#api)
9-
* [HtmlDiffer](#htmldiffer)
10-
* [Опции](#Опции)
11-
* [ignoreAttributes: [Array]](#ignoreattributes-array)
12-
* [compareAttributesAsJSON: [Array]](#compareattributesasjson-array)
13-
* [ignoreWhitespaces: Boolean](#ignorewhitespaces-boolean)
14-
* [ignoreComments: Boolean](#ignorecomments-boolean)
15-
* [ignoreEndTags: Boolean](#ignoreendtags-boolean)
16-
* [ignoreDuplicateAttributes: Boolean](#ignoreduplicateattributes-boolean)
17-
* [Пресеты](#Пресеты)
18-
* [Использование](#Использование)
19-
* [Методы](#Методы)
20-
* [htmlDiffer.diffHtml](#htmldifferdiffhtml)
21-
* [htmlDiffer.isEqual](#htmldifferisequal)
22-
* [Logger](#logger)
23-
* [Методы](#Методы-1)
24-
* [logger.getDiffText](#loggergetdifftext)
25-
* [logger.logDiffText](#loggerlogdifftext)
26-
* [Пример](#Пример)
27-
* [Использование в качестве программы](#Использование-в-качестве-программы)
28-
* [Пример](#Пример-1)
29-
* [Конфигурационный файл](#Конфигурационный-файл)
30-
* [Маски](#Маски)
31-
* [Синтаксис](#Синтаксис)
32-
* [Экранирование](#Экранирование)
6+
- [Алгоритм сравнения](#Алгоритм-сравнения)
7+
- [Установка](#Установка)
8+
- [API](#api)
9+
- [HtmlDiffer](#htmldiffer)
10+
- [Опции](#Опции)
11+
- [ignoreAttributes](#ignoreattributes-array)
12+
- [compareAttributesAsJSON](#compareattributesasjson-array)
13+
- [ignoreWhitespaces](#ignorewhitespaces-boolean)
14+
- [ignoreComments](#ignorecomments-boolean)
15+
- [ignoreEndTags](#ignoreendtags-boolean)
16+
- [ignoreDuplicateAttributes](#ignoreduplicateattributes-boolean)
17+
- [Пресеты](#Пресеты)
18+
- [Использование](#Использование)
19+
- [Методы](#Методы)
20+
- [htmlDiffer.diffHtml](#htmldifferdiffhtml)
21+
- [htmlDiffer.isEqual](#htmldifferisequal)
22+
- [Logger](#logger)
23+
- [Методы](#Методы-1)
24+
- [logger.getDiffText](#loggergetdifftext)
25+
- [logger.logDiffText](#loggerlogdifftext)
26+
- [Пример](#Пример)
27+
- [Использование в качестве программы](#Использование-в-качестве-программы)
28+
- [Пример](#Пример-1)
29+
- [Конфигурационный файл](#Конфигурационный-файл)
30+
- [Маски](#Маски)
31+
- [Синтаксис](#Синтаксис)
32+
- [Экранирование](#Экранирование)
3333

3434
<!-- TOC END -->
3535

@@ -106,6 +106,7 @@ var HtmlDiffer = require('html-differ').HtmlDiffer,
106106

107107
#### Опции
108108

109+
<!-- TOC:display:ignoreAttributes -->
109110
##### ignoreAttributes: [Array]
110111

111112
Устанавливает, значения каких атрибутов следует игнорировать при сравнении (по умолчанию: `[]`).
@@ -123,6 +124,7 @@ var HtmlDiffer = require('html-differ').HtmlDiffer,
123124
<input id="sfsdfksdf">
124125
```
125126

127+
<!-- TOC:display:compareAttributesAsJSON -->
126128
##### compareAttributesAsJSON: [Array]
127129

128130
Устанавливает, значения каких атрибутов следует сравнивать как JSON-объекты, а не как строки (по умолчанию: `[]`).<br>
@@ -151,6 +153,7 @@ var HtmlDiffer = require('html-differ').HtmlDiffer,
151153
Первый элемент массива мог быть записан в короткой форме в качестве строки:<br>
152154
`['data', { name: 'onclick', isFunction: true }]`.
153155

156+
<!-- TOC:display:ignoreWhitespaces -->
154157
##### ignoreWhitespaces: Boolean
155158

156159
**html-differ** будет игнорировать пробельные символы (пробелы, табуляция, переводы строк и т. д.) при сравнении (по умолчанию: `true`).
@@ -183,6 +186,7 @@ var HtmlDiffer = require('html-differ').HtmlDiffer,
183186

184187
```
185188

189+
<!-- TOC:display:ignoreComments -->
186190
##### ignoreComments: Boolean
187191

188192
**html-differ** будет игнорировать HTML-комментарии при сравнении (по умолчанию: `true`).
@@ -231,6 +235,7 @@ Text
231235
</html>
232236
```
233237

238+
<!-- TOC:display:ignoreEndTags -->
234239
##### ignoreEndTags: Boolean
235240

236241
**html-differ** будет игнорировать закрывающие тэги при сравнении (по умолчанию: `false`).
@@ -246,6 +251,7 @@ Text
246251
<span>Text</spane>
247252
```
248253

254+
<!-- TOC:display:ignoreDuplicateAttributes -->
249255
##### ignoreDuplicateAttributes: Boolean
250256

251257
**html-differ** будет игнорировать повторяющиеся атрибуты.<br>

0 commit comments

Comments
 (0)