Skip to content

Commit

Permalink
Updating link in link_of_uri to markdown syntax. Not working well in …
Browse files Browse the repository at this point in the history
…api files but cleaner in most cases
  • Loading branch information
mhjd committed Jul 29, 2024
1 parent 861fa93 commit 3686648
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ohow/markdown_builder.ml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ let rec plugin_res =
let a_link_of_uri ?fragment suffix uri contents =
let uri = suffix <$> (fun s -> Paths.concat_uri_suffix s uri) |? uri in
let uri = uri ^ (fragment <$> (fun f -> "#" ^ f) |? "") in
"<a href=\"" ^ uri ^ "\">" ^ (contents |? uri) ^ "</a>"
"[" ^ (contents |? uri) ^ "](" ^ uri ^ ")"

let starts_with prefix s =
let p = String.length prefix in
Expand Down

0 comments on commit 3686648

Please sign in to comment.