Skip to content

Commit 4ff3234

Browse files
List new options on the index page.
1 parent ddb5702 commit 4ff3234

File tree

4 files changed

+27
-11
lines changed

4 files changed

+27
-11
lines changed

index.html

+13
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,18 @@ <h2 id=sample-config>Sample config file</h2>
367367
new-empty-tags: cfelse
368368
</pre>
369369

370+
<h2 id="new-config">New configuration options</h2>
371+
<p>The experimental HTML5-aware fork of Tidy adds the following new
372+
configuration options:
373+
<ul>
374+
<li><a href="http://w3c.github.com/tidy-html5/quickref.html#coerce-endtags">coerce-endtags</a>
375+
<li><a href="http://w3c.github.com/tidy-html5/quickref.html#drop-empty-elements">drop-empty-elements</a>
376+
<li><a href="http://w3c.github.com/tidy-html5/quickref.html#merge-emphasis">merge-emphasis</a>
377+
</ul>
378+
<p>In addition, it also adds a new <code>html5</code> value for the
379+
<a href="http://w3c.github.com/tidy-html5/quickref.html#doctype">doctype</a>
380+
configuration option.
381+
370382
<h2 id=indenting>Indenting output for readability</h2>
371383
<p>Indenting the source markup of an HTML document makes the markup easier
372384
to read. Tidy can indent the markup for an HTML document while recognizing
@@ -566,6 +578,7 @@ <h2 id=acks>Acknowledgements</h2>
566578
<li><a href="#options">Options and configuration settings</a>
567579
<li><a href="#config">Using a config file</a>
568580
<li><a href="#sample-config">Sample config file</a>
581+
<li><a href="#new-config">New configuration options</a>
569582
<li><a href="#indenting">Indenting output for readability</a>
570583
<li><a href="#preserve-indenting">Preserving original indenting not possible</a>
571584
<li><a href="#encodings">Encodings and character references</a>

quickref.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<body>
99
<h1 id="top">Quick Reference</h1>
1010
<h2>HTML Tidy Configuration Options</h2>
11-
<p>Version: <a href="https://github.com/w3c/tidy-html5/tree/3a9a794">https://github.com/w3c/tidy-html5/tree/3a9a794</a></p>
11+
<p>Version: <a href="https://github.com/w3c/tidy-html5/tree/3ed33a1">https://github.com/w3c/tidy-html5/tree/3ed33a1</a></p>
1212
<p>
1313
<a class="h3" href="#MarkupHeader">HTML, XHTML, XML</a>
1414
<br />
@@ -943,7 +943,7 @@ <h2>HTML Tidy Configuration Options</h2>
943943
<td align="right" valign="top"></td>
944944
</tr>
945945
<tr>
946-
<td colspan="2">This option specifies the DOCTYPE declaration generated by Tidy. If set to "omit" the output won't contain a DOCTYPE declaration. If set to "html5" the DOCTYPE is set to "&lt;!DOCTYPE html&gt;". If set to "auto" (the default) Tidy will use an educated guess based upon the contents of the document. If set to "strict", Tidy will set the DOCTYPE to the strict DTD. If set to "loose", the DOCTYPE is set to the loose (transitional) DTD. Alternatively, you can supply a string for the formal public identifier (FPI).<br /><br />For example: <br />doctype: "-//ACME//DTD HTML 3.14159//EN"<br /><br />If you specify the FPI for an XHTML document, Tidy will set the system identifier to an empty string. For an HTML document, Tidy adds a system identifier only if one was already present in order to preserve the processing mode of some browsers. Tidy leaves the DOCTYPE for generic XML documents unchanged. <code>--doctype omit</code> implies <code>--numeric-entities yes</code>. This option does not offer a validation of the document conformance. </td>
946+
<td colspan="2">This option specifies the DOCTYPE declaration generated by Tidy.<br />If set to "omit" the output won't contain a DOCTYPE declaration.<br />If set to "html5" the DOCTYPE is set to "&lt;!DOCTYPE html&gt;".<br />If set to "auto" (the default) Tidy will use an educated guess based upon the contents of the document.<br />If set to "strict", Tidy will set the DOCTYPE to the HTML4 or XHTML1 strict DTD.<br />If set to "loose", the DOCTYPE is set to the HTML4 or XHTML1 loose (transitional) DTD. <br />Alternatively, you can supply a string for the formal public identifier (FPI).<br /><br />For example: <br />doctype: "-//ACME//DTD HTML 3.14159//EN"<br /><br />If you specify the FPI for an XHTML document, Tidy will set the system identifier to an empty string. For an HTML document, Tidy adds a system identifier only if one was already present in order to preserve the processing mode of some browsers. Tidy leaves the DOCTYPE for generic XML documents unchanged. <code>--doctype omit</code> implies <code>--numeric-entities yes</code>. This option does not offer a validation of the document conformance. </td>
947947
</tr>
948948
<tr>
949949
<td>&#160;</td>

src/localize.c

+11-8
Original file line numberDiff line numberDiff line change
@@ -406,14 +406,17 @@ static const TidyOptionDoc option_docs[] =
406406
, TidyMakeCleanTagsLinks
407407
},
408408
{TidyDoctype,
409-
"This option specifies the DOCTYPE declaration generated by Tidy. If set "
410-
"to \"omit\" the output won't contain a DOCTYPE declaration. If set to "
411-
"\"html5\" the DOCTYPE is set to \"&lt;!DOCTYPE html>\". If set to "
412-
"\"auto\" (the default) Tidy will use an educated guess based upon the "
413-
"contents of the document. If set to \"strict\", Tidy will set the DOCTYPE "
414-
"to the strict DTD. If set to \"loose\", the DOCTYPE is set to the loose "
415-
"(transitional) DTD. Alternatively, you can supply a string for the formal "
416-
"public identifier (FPI).<br />"
409+
"This option specifies the DOCTYPE declaration generated by Tidy.<br />"
410+
"If set to \"omit\" the output won't contain a DOCTYPE declaration.<br />"
411+
"If set to \"html5\" the DOCTYPE is set to \"&lt;!DOCTYPE html>\".<br />"
412+
"If set to \"auto\" (the default) Tidy will use an educated guess based "
413+
"upon the contents of the document.<br />"
414+
"If set to \"strict\", Tidy will set the DOCTYPE to the HTML4 or XHTML1 "
415+
"strict DTD.<br />"
416+
"If set to \"loose\", the DOCTYPE is set to the HTML4 or XHTML1 loose "
417+
"(transitional) DTD. <br />"
418+
"Alternatively, you can supply a string for the formal public identifier "
419+
"(FPI).<br />"
417420
"<br />"
418421
"For example: <br />"
419422
"doctype: \"-//ACME//DTD HTML 3.14159//EN\"<br />"

src/version.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
static const char TY_(release_date)[] = "https://github.com/w3c/tidy-html5/tree/3ed33a1";
1+
static const char TY_(release_date)[] = "https://github.com/w3c/tidy-html5/tree/ddb5702";

0 commit comments

Comments
 (0)