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
/** * Creates new QRCamera from frontal camera * @example * const canvas = new QRCanvas(); * const camera = frontalCamera(); */exportasyncfunctionfrontalCamera(player: HTMLVideoElement): Promise<QRCamera>
Example directive is perfectly valid JS code, and has always been. However, JSR doesn't highlight it -- and even worse, doesn't even add line-breaks. JSR needs this:
@example
```js
const canvas = new QRCanvas();
const camera = frontalCamera();
```
It's unreasonable to require all jsdoc code example to be replaced by this flavored markdown just because you can't fix your code.
The text was updated successfully, but these errors were encountered:
Consider this JS/ts code:
Example directive is perfectly valid JS code, and has always been. However, JSR doesn't highlight it -- and even worse, doesn't even add line-breaks. JSR needs this:
It's unreasonable to require all jsdoc code example to be replaced by this flavored markdown just because you can't fix your code.
The text was updated successfully, but these errors were encountered: