Loading...
Loading...
Compare original and translation side by side
packages/docs/docs.mdx.mdxpackages/docs/docs.mdxpackages/docs/docspackages/docs/sidebars.tsbun render-cards.tspackages/docscrumbcrumb: '@remotion/package-name'---
image: /generated/articles-docs-my-package-my-api.png
title: '<MyComponent>'
crumb: '@remotion/my-package'
---getEncodableVideoCodecs()getEncodableAudioCodecs()#######packages/docs/docs.mdxpackages/docs/sidebars.tspackages/docsbun render-cards.tscrumbcrumb: '@remotion/package-name'---
image: /generated/articles-docs-my-package-my-api.png
title: '<MyComponent>'
crumb: '@remotion/my-package'
---getEncodableVideoCodecs()getEncodableAudioCodecs()#######```ts
const x = 1;
``````ts
const x = 1;
```twoslash```ts twoslash
import {useCurrentFrame} from 'remotion';
const frame = useCurrentFrame();
```twoslash```ts twoslash
import {useCurrentFrame} from 'remotion';
const frame = useCurrentFrame();
```// ---cut---```ts twoslash
import {useCurrentFrame} from 'remotion';
// ---cut---
const frame = useCurrentFrame();
```// ---cut---```ts twoslash
import {useCurrentFrame} from 'remotion';
// ---cut---
const frame = useCurrentFrame();
```title```ts twoslash title="MyComponent.tsx"
console.log('Hello');
```title```ts twoslash title="MyComponent.tsx"
console.log('Hello');
```- <Step>1</Step> First step
- <Step>2</Step> Second step- <Step>1</Step> 第一步
- <Step>2</Step> 第二步<ExperimentalBadge>
<p>This feature is experimental.</p>
</ExperimentalBadge><ExperimentalBadge>
<p>此特性为实验性。</p>
</ExperimentalBadge><Demo type="rect"/>packages/docs/components/demos/index.tsxdocs-demo<Demo type="rect"/>packages/docs/components/demos/index.tsxdocs-demo# h1<AvailableFrom><>undefined# h1<AvailableFrom><>undefined
```md
```md
For section headings:
```md
对于章节标题:
```mdundefinedundefined## Compatibility## See alsochromefirefoxsafariplayerstudioclientSideRenderingserverSideRenderingtrue{false}""nodejs=""bun=""serverlessFunctions=""hideServersundefined## 兼容性## 另请参阅chromefirefoxsafariplayerstudioclientSideRenderingserverSideRenderingtrue{false}""nodejs=""bun=""serverlessFunctions=""hideServersundefined?--_optional_?undefined?--_optional_?undefined
**Do NOT do this:**
```md
**请勿这样做:**
```mdundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedcd packages/docs && bun render-cards.tscd packages/docs && bun render-cards.tsundefinedundefined
This validates MDX syntax, twoslash snippets, and broken links.
这会验证MDX语法、twoslash片段和失效链接。