@@ -339,7 +339,8 @@ private TPart ResolveHeaderFooterPart<TRefType, TPart>(HeaderFooterValues? type)
339
339
public AcronymPosition AcronymPosition { get ; set ; }
340
340
341
341
/// <summary>
342
- /// Gets or sets whether anchor links are included or not in the convertion.
342
+ /// Gets or sets whether anchor links are included or not in the conversion
343
+ /// (defaults <see langword="true" />).
343
344
/// </summary>
344
345
/// <remarks>An anchor is a term used to define a hyperlink destination inside a document.
345
346
/// <see href="http://www.w3schools.com/HTML/html_links.asp"/>.
@@ -351,7 +352,23 @@ private TPart ResolveHeaderFooterPart<TRefType, TPart>(HeaderFooterValues? type)
351
352
/// <see cref="DocumentFormat.OpenXml.Wordprocessing.BookmarkEnd"/> elements
352
353
/// and set the value of href to <i><c>#name of your bookmark</c></i>.
353
354
/// </remarks>
354
- public bool ExcludeLinkAnchor { get ; set ; }
355
+ public bool SupportsAnchorLinks { get ; set ; } = true ;
356
+
357
+ /// <summary>
358
+ /// Gets or sets whether anchor links are included or not in the conversion.
359
+ /// </summary>
360
+ /// <remarks>An anchor is a term used to define a hyperlink destination inside a document.
361
+ /// <see href="http://www.w3schools.com/HTML/html_links.asp"/>.
362
+ /// <br/>
363
+ /// It exists some predefined anchors used by Word such as _top to refer to the top of the document.
364
+ /// The anchor <i>#_top</i> is always accepted regardless this property value.
365
+ /// For others anchors like refering to your own bookmark or a title, add a
366
+ /// <see cref="DocumentFormat.OpenXml.Wordprocessing.BookmarkStart"/> and
367
+ /// <see cref="DocumentFormat.OpenXml.Wordprocessing.BookmarkEnd"/> elements
368
+ /// and set the value of href to <i><c>#name of your bookmark</c></i>.
369
+ /// </remarks>
370
+ [ Obsolete ( "Use SupportsAnchorLink instead, if ExcludeLinkAnchor = true -> SupportsAnchorLink = false" ) ]
371
+ public bool ExcludeLinkAnchor { get => ! SupportsAnchorLinks ; set => SupportsAnchorLinks = ! value ; }
355
372
356
373
/// <summary>
357
374
/// Gets the Html styles manager mapping to OpenXml style properties.
@@ -367,7 +384,7 @@ public WordDocumentStyle HtmlStyles
367
384
public CaptionPositionValues TableCaptionPosition { get ; set ; }
368
385
369
386
/// <summary>
370
- /// Gets or sets whether the <c>pre</c> tag should be rendered as a table (default <see langword="false"/>).
387
+ /// Gets or sets whether the <c>pre</c> tag should be rendered as a table (defaults <see langword="false"/>).
371
388
/// </summary>
372
389
/// <remarks>The table will contains only one cell.</remarks>
373
390
public bool RenderPreAsTable { get ; set ; }
@@ -378,6 +395,16 @@ public WordDocumentStyle HtmlStyles
378
395
/// </summary>
379
396
public bool ContinueNumbering { get ; set ; } = true ;
380
397
398
+ /// <summary>
399
+ /// Defines whether any headings (<c>h1-h6</c>) could be considered as multi-level numbering, such as
400
+ /// top-level headings (Heading 1) are numbered 1, 2, 3, for example, and second-level headings (Heading 2) are numbered 1.1, 1.2, 1.3.
401
+ /// This feature is enabled by default.
402
+ /// </summary>
403
+ /// <remarks>The converter is detecting headings starting with a number (ie: <c>1.</c> or <c>1 </c>)
404
+ /// are considered as numbering.
405
+ /// </remarks>
406
+ public bool SupportsHeadingNumbering { get ; set ; } = true ;
407
+
381
408
/// <summary>
382
409
/// Gets the mainDocumentPart of the destination OpenXml document.
383
410
/// </summary>
0 commit comments