import { ITagHandler , TagNode } from '@cc98/ubb-core' ; import { IContext } from '@cc98/context' ; import React from 'react' ; const handler = { isRecursive : false , render ( node , context ) { const innerText = node . innerText ; const { bili } = node . tagData ; const partNumber = parseInt ( bili , 10 ) || 1 ; return ( < iframe className = "ubb-tag-bili" src = { `https://player.bilibili.com/player.html?aid=${ innerText }&page=${ partNumber }` } allowFullScreen / > ) ; } , } ; export default handler ;