Open a new buffer and paste the content:
```typescript
const result = 1 + 1;
console.log(result);
```
Remove the \ as this is only for writing it here on github...
Run M-x gfm-view mode.
Note:
This problem goes away if I do install typescript-mode:
(use-package typescript-mode
:defer t
:ensure t)
Problem is that treesit modes replaces lots of "classic style modes", some for which there's actually no "mode package" for Emacs, but there's a tree sitter parser (like some obscure parsers you can find on this list: https://github.com/nvim-treesitter/nvim-treesitter).
Is there a way of making markdown-mode see "typescript" and actually use "typescript-ts-mode" for syntax highlighting?
A list converting modes or a global option to turn on/off such feature would be really nice.
Backtrace
No backtrace
Software Versions
Markdown Mode: Melpa Version markdown-mode-20240107.831
Emacs: GNU Emacs 29.2 (build 2, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0, Xaw3d scroll bars) of 2024-01-21
Expected Behavior
(gfm-mode)
```typescript
const result = 1 + 1;
console.log(result); ```
to be rendered as (gfm-view-mode):![image](https://github.com/jrblevin/markdown-mode/assets/16169950/2b5a6639-ebce-47ab-b3d3-94d02a897d21)
Actual Behavior
(gfm-mode)
```typescript
const result = 1 + 1;
console.log(result); ```
being rendered as (gfm-view-mode):![image](https://github.com/jrblevin/markdown-mode/assets/16169950/b239c840-e26f-46fb-991f-5a7d639ae696)
Steps to Reproduce
Have a system configured for treating typescript with
treesitter
and have notypescript-mode
installed (such a config can be find here: https://github.com/LionyxML/lemacs/blob/main/init.el).Open a new buffer and paste the content: ```typescript
const result = 1 + 1;
console.log(result); ```
Remove the \ as this is only for writing it here on github...
Run
M-x gfm-view mode
.Note: This problem goes away if I do install typescript-mode:
Problem is that treesit modes replaces lots of "classic style modes", some for which there's actually no "mode package" for Emacs, but there's a tree sitter parser (like some obscure parsers you can find on this list: https://github.com/nvim-treesitter/nvim-treesitter).
Is there a way of making
markdown-mode
see "typescript" and actually use "typescript-ts-mode" for syntax highlighting?A list converting modes or a global option to turn on/off such feature would be really nice.
Backtrace
No backtrace
Software Versions