You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
:defert:ensuret)
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):
Actual Behavior
(gfm-mode)
```typescript
const result = 1 + 1;
console.log(result);
```
being rendered as (gfm-view-mode):
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
The text was updated successfully, but these errors were encountered: