Skip to content

Typescript Support #1

@canadaduane

Description

@canadaduane

This is so cool! Markdown as a host document for languages is such a great way to make Literate Programming work for both humans and AIs :D

I'm trying to make this extension work with typescript, but am currently running into a wall. I think the right language selector is ".ts", is that right?

Here's what I'm trying:

```{.ts file=src/hello.ts}
type Greeting = "hello" | "hi"
\```

If I replace ".ts" with ".js" it seems to do syntax highlighting in js ok.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions