Skip to content

Commit

Permalink
parser: document sourcepos reliability.
Browse files Browse the repository at this point in the history
  • Loading branch information
kivikakk committed Jul 12, 2024
1 parent cc17182 commit 983180b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/parser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -755,9 +755,14 @@ pub struct RenderOptions {
/// ```
pub list_style: ListStyleType,

/// Include source position attributes in XML output.
/// Include source position attributes in HTML and XML output.
///
/// Not yet compatible with extension.description_lists.
/// Sourcepos information is reliable for all core block items, and most
/// extensions. The description lists extension still has issues; see
/// <https://github.com/kivikakk/comrak/blob/3bb6d4ce/src/tests/description_lists.rs#L60-L125>.
///
/// Sourcepos information is **not** reliable for inlines. See
/// <https://github.com/kivikakk/comrak/pull/439> for a discussion.
///
/// ```rust
/// # use comrak::{markdown_to_commonmark_xml, Options};
Expand Down

0 comments on commit 983180b

Please sign in to comment.