Closed mbostock closed 2 months ago
Would be simpler to just invert the precedence and have /chart.js.md
take precedence over /chart.js
? I don’t think it matters which one we choose; we just have to pick one, so we should pick whatever’s easier for us. Edit: There is a philosophical reason to give /chart.js
precedence which is that it is an exact match and more specific than /chart.js.md
, and hence we should stay the course. Further edit: I think we could just disallow /chart.js.md
entirely and require that pages only have a single extension. That restriction should simplify things and feels reasonable and more forward-looking.
Boo, one of our tests has a page sub/page1..10.md
which already violates the double extension rule, suggesting that we should allow pages to have double extensions but fix the precedence issue… I need to think more.
TODO:
/chart.js
) during preview/chart.js
) during build viaembedPathsdynamicPaths/chart.js.md
)/chart.js.md
given/chart.js
) in the sidebar & pagerFixes #1084. Fixes #1583.