Fix up linkification

This commit is contained in:
Olivier 'reivilibre 2025-09-05 21:48:49 +01:00
parent 9418f55646
commit 99880519b3

View File

@ -42,7 +42,7 @@ fn linkify_schema_elements_markdown(text: String, schema: &IntermediateSchema) -
if schema.tables.contains_key(object_name) {
// this looks like a table name; insert a link
// TODO get the anchor logic exactly right
format!("[{}](#{})", &captures[0], object_name.replace("-", "_"))
format!("[{}](#{})", &captures[0], object_name.replace("_", "-"))
} else {
// don't linkify; leave it alone
captures[0].to_owned()