Closed DMartens closed 6 months ago
That seems reasonable to me. Would you like to submit a PR for that?
TSC Summary: This change seeks to use recognizable filename extensions for common code block types like node
, javascript
, ecmascript
to .js
, markdown
to .md
, and typescript
to .ts
. Currently, the plugin would use the code block type as the filename extension, so javascript
becomes 0.javascript
, which is a bit confusing.
TSC Question: This represents a breaking change, do we want to accept this and publish a new major version?
Per TSC 2024-04-04 meeting, we've agreed to accept this proposal but will omit node
option at this time.
Currently the processor uses the raw language of the code block for the file extension of the block. This works for using
js
as language but not forjavascript
ornode
as the resulting blocks would be excluded as the linter thinks they do not contain JavaScript. It would be great for if there would be a normalization for mapping the code block language to the blocks file extension: