Replies: 1 comment
|
Hi @eguiraud! When it comes to filenames these are usually inserted as-is (modulo url-encoding when you have spaces in file names and special symbols). The titles are transformed using this code: the gist is that all alphanumeric chars are lowercased and punctuation/whitespace chars are replaced with a dash '-', e.g. I don't think there's an official definition of what a GitHub's slug is. What I have seems like a good approximation though. Regarding the second question:
You can still link to your file using filename Hope this helps! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hello,
what's the exact transformation from note filename or title to the slug that can be used to link to it in a
[[link]]?Sorry if it's written somewhere, could not find it.
For example if I have a) a file called
my_note.mdwith content# My Note, what's the correct slug? and what if b) a file calledmy_note.mddoes not have a# Titlebut instead only a bunch of## Sections?All reactions