Skip to content

Commit

Permalink
committing fully
Browse files Browse the repository at this point in the history
  • Loading branch information
teh-cmc committed Jan 22, 2025
1 parent 8c2e8f3 commit 045c465
Show file tree
Hide file tree
Showing 2 changed files with 307 additions and 304 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,10 @@ impl SnippetsRefCodeGenerator {
format!("[`{obj_name}`]({link_docs})")
};

let snippet_name_qualified = &snippet.name_qualified;
// NOTE: `/` is written with a UTF8 zero-width word joiner (<https://unicode-explorer.com/c/2060>)
// on both sides in order to force the markdown renderer to *not* split it into two lines ("archetype/\nthing").
#[allow(clippy::invisible_characters)]
let snippet_name_qualified = &snippet.name_qualified.replace('/', "⁠/⁠");
let snippet_descr = snippet.description.clone().unwrap_or_default();

let link_py = if snippet.python {
Expand Down
Loading

0 comments on commit 045c465

Please sign in to comment.