canvas-native
Version:
Utilities for working with the native Canvas format
32 lines (23 loc) • 590 B
JavaScript
import List from './list';
import { wrap } from '../brackets';
const MARKDOWN_MATCH = ' *(([\\*\\-\\+]) (.*))';
export default class UnorderedList extends List {
get content() {
return this.match[5];
}
get marker() {
return this.match[4];
}
static get markdownPattern() {
return new RegExp(`^${MARKDOWN_MATCH}$`);
}
static get name() {
return 'unordered-list-item';
}
static get nativePattern() {
return new RegExp(`^(${wrap('unordered-list-(\\d+)')})${MARKDOWN_MATCH}$`);
}
static get prefixBase() {
return 'unordered-list';
}
}