1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//! Processing warning types for non-fatal issues during conversion.
use ;
/// A non-fatal diagnostic produced during HTML conversion.
///
/// Warnings indicate that conversion completed but some content may have been handled
/// differently than expected — for example, an image that could not be extracted, a truncated
/// input, or malformed HTML that was repaired with best-effort parsing.
///
/// Conversion always succeeds (returns [`crate::ConversionResult`]) even when warnings are
/// present. Callers should inspect [`crate::ConversionResult::warnings`] and decide how to
/// handle them based on their tolerance for partial results:
///
/// - **Logging pipelines**: emit each warning at `WARN` level and continue.
/// - **Strict pipelines**: treat any warning as a hard error by checking
/// `result.warnings.is_empty()` before using the output.
///
/// See [`WarningKind`] for the full taxonomy of warning categories.
/// Categories of processing warnings.