Skip to content

Cant get xref to image to work with markdown #195

Answered by daveaglick
codeulike asked this question in Q&A
Discussion options

You must be logged in to vote

Or is this happening because xref only applies to content files and not to assets?

That's exactly it. The idea behind xrefs is that it's a way for the generator to build a dictionary of pages keyed by a simple ID (the xref, which is normally constructed from the page title, but can also be customized per-page in front-matter). That way when a page moves around to a different path, the pages linking to it don't have to do anything to be generated with the new URL. They're really handy in content heavy sites with lots of cross-references to ensure you don't have to go around and change 100 other pages with inbound links every time you move a page.

Images in Markdown are fairly straightfor…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by codeulike
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants