feat: better article parsing + html dom base
This commit is contained in:
+15
-8
@@ -1,11 +1,18 @@
|
||||
export interface MarkdownAttributes {
|
||||
title?: string
|
||||
draft?: string
|
||||
thumbnail?: string
|
||||
path?: string
|
||||
}
|
||||
|
||||
export interface MarkdownData {
|
||||
attributes: MarkdownAttributes
|
||||
attributes: Record<string, unknown>
|
||||
html: string
|
||||
}
|
||||
|
||||
export interface ArticleMetadata {
|
||||
path: string
|
||||
title: string
|
||||
date: Date
|
||||
author: string
|
||||
thumbnail: string
|
||||
draft: boolean
|
||||
}
|
||||
|
||||
export interface Article {
|
||||
metadata: ArticleMetadata
|
||||
html: string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user