Skip to content

TypeScript-powered Code Blocks #120

Closed
@orta

Description

@orta

Things I want for all code blocks inside website v2:

  • Accurate Syntax Highlighting for complex TS (ex)
  • Hover support for symbols (ex)
  • Inline reporting of errors (ex)
  • The ability to tell a code block to switch from TS code to any arbitrary part of the tsc emit (ex)
    • a JS file
    • a d.ts file
    • a source map
  • The ability to create a working imports inside a codeblock (TS/JS/DTS)
  • The ability to highlight lines, a line, or a range inside the line (ex)

Sidegoal:

Make this not directly tied to the website so that anyone with a Gatsby blog can re-use this for their own docs with very little setup.

Places with existing infra this can build from:

/cc @andrewbranch @RyanCavanaugh

Metadata

Metadata

Assignees

No one assigned

    Labels

    RoadmapSomething which describes a long term vision

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions