fix(api): remove hidden attr from anchor links, use CSS display instead

This commit is contained in:
xfy 2026-06-03 09:48:12 +08:00
parent 5ff58fec59
commit fb4f5790fc

View File

@ -261,7 +261,7 @@ fn render_markdown_enhanced(md: &str) -> RenderedContent {
HeadingLevel::H6 => "h6",
};
html.push_str(&format!(
"<a hidden class=\"anchor\" aria-hidden=\"true\" href=\"#{}\">#</a></{}>",
"<a class=\"anchor\" aria-hidden=\"true\" href=\"#{}\">#</a></{}>",
id, tag
));
heading_idx += 1;