feat: add hyperlink
This commit is contained in:
@@ -7,8 +7,9 @@ export function writeText(text: string) {
|
||||
}
|
||||
|
||||
export function writeTextByElementList(elementList: IElement[]) {
|
||||
const { TEXT, HYPERLINK } = ElementType
|
||||
const text = elementList
|
||||
.map(p => !p.type || p.type === ElementType.TEXT ? p.value : '')
|
||||
.map(p => !p.type || p.type === TEXT || p.type === HYPERLINK ? p.value : '')
|
||||
.join('')
|
||||
writeText(text)
|
||||
}
|
||||
Reference in New Issue
Block a user