File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 1+ import { Unit } from "./unit.ts" ;
2+ import { PlainText } from "./plainText.ts" ;
3+
4+ /** Anchor埋め込み */
5+ export interface Anchor {
6+ type : "anchor" ;
7+
8+ /** 構文解析結果 */
9+ unit : AnchorUnit ;
10+
11+ /** the same as `unit.content` */
12+ children : PlainText ;
13+ }
14+
15+ export interface AnchorUnit extends Unit {
16+ /** Anchor video ID */
17+ videoId : string ;
18+ }
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ import { Vimeo } from "./vimeo.ts";
1919import { Audio } from "./audio.ts" ;
2020import { AudioLink } from "./audioLink.ts" ;
2121import { Spotify } from "./spotify.ts" ;
22+ import { Anchor } from "./anchor.ts" ;
2223import { GoogleMap } from "./googleMap.ts" ;
2324import { Indent } from "./indent.ts" ;
2425
@@ -47,6 +48,7 @@ export type NodeWithoutIndent =
4748 | Audio
4849 | AudioLink
4950 | Spotify
51+ | Anchor
5052 | Youtube
5153 | Vimeo
5254 | GoogleMap ;
You can’t perform that action at this time.
0 commit comments