mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
3c6134d860
Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: jakebailey <[email protected]>
49 lines
620 B
TypeScript
49 lines
620 B
TypeScript
//// [tests/cases/compiler/jsDocCodeblockParsing.ts] ////
|
|
|
|
//// [jsDocCodeblockParsing.ts]
|
|
/**
|
|
* text
|
|
* @example Foo
|
|
* ```
|
|
* @Embed[asfasdfasf]
|
|
* ```
|
|
* becomes
|
|
* ```html
|
|
* <div></div>
|
|
* ```
|
|
*/
|
|
const x = 1;
|
|
|
|
/**
|
|
* Some text
|
|
* ```
|
|
* @tag inside code
|
|
* ```
|
|
* @param y - a number
|
|
*/
|
|
function foo(y: number) {}
|
|
|
|
|
|
//// [jsDocCodeblockParsing.js]
|
|
"use strict";
|
|
/**
|
|
* text
|
|
* @example Foo
|
|
* ```
|
|
* @Embed[asfasdfasf]
|
|
* ```
|
|
* becomes
|
|
* ```html
|
|
* <div></div>
|
|
* ```
|
|
*/
|
|
const x = 1;
|
|
/**
|
|
* Some text
|
|
* ```
|
|
* @tag inside code
|
|
* ```
|
|
* @param y - a number
|
|
*/
|
|
function foo(y) { }
|