Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2bc26fbdc5
|
@@ -49,7 +49,8 @@ export class MarkdownConverter {
|
||||
const line = lines[i];
|
||||
|
||||
// Heading
|
||||
const headingMatch = line.match(/^(#{1,6})\s+(.+)$/);
|
||||
// `\s+(\S.*)` keeps the separator and the text disjoint, so matching is linear.
|
||||
const headingMatch = line.match(/^(#{1,6})\s+(\S.*)$/);
|
||||
if (headingMatch) {
|
||||
tokens.push({
|
||||
type: 'heading',
|
||||
|
||||
Reference in new issue
Block a user