Method
process(_:currentDepth:)
Processes HTML content, replacing doc:// URLs with proper links.
func process(_ html: String, currentDepth: Int) -> String
Parameters
html-
The HTML content to process.
currentDepth-
The depth of the current page for calculating relative URLs.
Return Value
The processed HTML content with resolved links.