Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
obgnail committed Jan 6, 2024
1 parent 8f732de commit 218a684
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/nodes/blockquote-item.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ export class BlockquoteItem implements Node {
readonly prefix: string
readonly kind = NodeKind.BlockquoteItem

constructor(prefix: string, children: Node[]) {
constructor (prefix: string, children: Node[]) {
this.prefix = prefix
this.children = children
}

toMarkdown() {
toMarkdown () {
return this.prefix + this.children.map(x => x.toMarkdown()).join('')
}

static isValidPrefix(str: string) {
static isValidPrefix (str: string) {
return str[0] === '>' && isInlineBlank(str[1])
}
}
}
4 changes: 2 additions & 2 deletions src/parser/parse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export function parse (str: string, options :NormalizedPadMarkdownOptions): Docu
let blankLine = true
let listPrefix = ''
let codeLang = ''
let blockquotePrefix: BlockquotePrefix = '> '
const blockquotePrefix: BlockquotePrefix = '> '
let strongDelimiter: StrongDelimiter = '**'
let emphasisDelimiter: EmphasisDelimiter = '*'
let inlineCodeDelimiter: InlineCodeDelimiter = '`'
Expand Down Expand Up @@ -198,7 +198,7 @@ export function parse (str: string, options :NormalizedPadMarkdownOptions): Docu
resolve(new OrderedListItem(listPrefix, popNodes()), new Blank(c))
i++
}
else if (state === State.BlockquoteItem && c === "\n") {
else if (state === State.BlockquoteItem && c === '\n') {
resolve(new BlockquoteItem(blockquotePrefix, popNodes()), new Blank(c))
i++
}
Expand Down

0 comments on commit 218a684

Please sign in to comment.