parent
e3b8495431
commit
0ff390ed80
7 changed files with 79 additions and 46 deletions
|
|
@ -8,7 +8,9 @@ export type TextElementQuote = {
|
|||
quote: string;
|
||||
};
|
||||
|
||||
export default function(text: string, isBegin: boolean) {
|
||||
export default function(text: string, before: string) {
|
||||
const isBegin = before == '';
|
||||
|
||||
const match = text.match(/^"([\s\S]+?)\n"/) || text.match(/^\n>([\s\S]+?)(\n\n|$)/) ||
|
||||
(isBegin ? text.match(/^>([\s\S]+?)(\n\n|$)/) : null);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue