Choice of filename vs. title for code blocks #10033
Unanswered
JoshuaKGoldberg
asked this question in
General
Replies: 1 comment 6 replies
-
It's called |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Coming over from eslint/markdown#226 -> eslint/markdown#230: we're discussing adding in support for specifying the file name of a code block:
Docusaurus is notable in that it uses
title
rather thanfilename
. We're leaning towards usingfilename
rather thantitle
in the proposal. So to be thorough: is there any reasoning behind Docusaurus usingtitle
? And/or, would Docusaurus be interested in adding filename as an alias?An example of why this may impact some users would be:
eslint-plugin-jsonc
for*.json
filesfilename=
andtitle=
meta for those blocks to work for ESLint and Docusaurus, respectivelyBeta Was this translation helpful? Give feedback.
All reactions