Choice of filename vs. title for code blocks #10033
-
Coming over from eslint/markdown#226 -> eslint/markdown#230: we're discussing adding in support for specifying the file name of a code block: ```json filename="package.json"
{}
``` Docusaurus is notable in that it uses An example of why this may impact some users would be:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
It's called |
Beta Was this translation helpful? Give feedback.
It's called
title
because well it's literally the displayed title. It can be used for many purposes other thanfilename
(for example, what abouttitle="ESLint config"
?). Granted I don't think it would be bad for us to addfilename
as an alias.