You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
488 B
19 lines
488 B
'use strict' |
|
|
|
var markdownLineEnding = require('../character/markdown-line-ending.js') |
|
var factorySpace = require('./factory-space.js') |
|
|
|
var partialBlankLine = { |
|
tokenize: tokenizePartialBlankLine, |
|
partial: true |
|
} |
|
|
|
function tokenizePartialBlankLine(effects, ok, nok) { |
|
return factorySpace(effects, afterWhitespace, 'linePrefix') |
|
|
|
function afterWhitespace(code) { |
|
return code === null || markdownLineEnding(code) ? ok(code) : nok(code) |
|
} |
|
} |
|
|
|
module.exports = partialBlankLine
|
|
|