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 141101b
Show file tree
Hide file tree
Showing 2 changed files with 308 additions and 303 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,11 @@ impl SnippetsRefCodeGenerator {
String::new()
};

// 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 row = format!("| **{obj_name_rendered}** | `{snippet_name_qualified}` | {snippet_descr} | {link_py} | {link_rs} | {link_cpp} |");

Ok(row)
Expand Down
Loading

0 comments on commit 141101b

Please sign in to comment.