markdown img insert work as intended

This commit is contained in:
dimitar committed 2026-02-03 19:53:29 +01:00
1 parent 28609a6492
commit 6467e21019
9 files changed
+3138 -1263

No files matched your search

+37
View File
@@ -36,6 +36,19 @@ export enum LiveBlogStatus {
ARCHIVED = 'archived',
}
export enum ImagePosition {
TOP = 'top',
LEFT = 'left',
RIGHT = 'right',
NONE = 'none',
}
export enum ImageSize {
SMALL = 'small',
MEDIUM = 'medium',
LARGE = 'large',
}
@Entity('authors')
export class Author {
@PrimaryGeneratedColumn('uuid')
@@ -114,6 +127,18 @@ export class Article {
@Column({ default: '' })
featuredImage: string;
@Column({
type: 'text',
default: 'top',
})
imagePosition: ImagePosition;
@Column({
type: 'text',
default: 'medium',
})
imageSize: ImageSize;
@Column({
type: 'text',
default: '[]',
@@ -189,6 +214,18 @@ export class LiveBlog {
@Column({ default: '' })
featuredImage: string;
@Column({
type: 'text',
default: 'top',
})
imagePosition: ImagePosition;
@Column({
type: 'text',
default: 'medium',
})
imageSize: ImageSize;
@Column({ default: 0 })
viewCount: number;