feat: add checkbox list #385
This commit is contained in:
@@ -3,7 +3,8 @@ import { ListStyle, ListType, UlStyle } from '../enum/List'
|
||||
export const ulStyleMapping: Record<UlStyle, string> = {
|
||||
[UlStyle.DISC]: '•',
|
||||
[UlStyle.CIRCLE]: '◦',
|
||||
[UlStyle.SQUARE]: '▫︎'
|
||||
[UlStyle.SQUARE]: '▫︎',
|
||||
[UlStyle.CHECKBOX]: '☑️'
|
||||
}
|
||||
|
||||
export const listTypeElementMapping: Record<ListType, string> = {
|
||||
@@ -15,5 +16,6 @@ export const listStyleCSSMapping: Record<ListStyle, string> = {
|
||||
[ListStyle.DISC]: 'disc',
|
||||
[ListStyle.CIRCLE]: 'circle',
|
||||
[ListStyle.SQUARE]: 'square',
|
||||
[ListStyle.DECIMAL]: 'decimal'
|
||||
[ListStyle.DECIMAL]: 'decimal',
|
||||
[ListStyle.CHECKBOX]: 'checkbox'
|
||||
}
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import { ZERO } from './Common'
|
||||
|
||||
export const NUMBER_REG = /[0-9]/
|
||||
export const NUMBER_LIKE_REG = /[0-9.]/
|
||||
export const CHINESE_REG = /[\u4e00-\u9fa5]/
|
||||
@@ -13,3 +15,5 @@ export const UNICODE_SYMBOL_REG = new RegExp(
|
||||
|
||||
export const PUNCTUATION_REG =
|
||||
/[、,。?!;:……「」“”‘’*()【】〔〕〖〗〘〙〚〛《》———﹝﹞–—\\/·.,!?;:`~<>()[\]{}'"|]/
|
||||
|
||||
export const START_LINE_BREAK_REG = new RegExp(`^[${ZERO}\n]`)
|
||||
|
||||
Reference in New Issue
Block a user