uniorg-parse
Advanced tools
Comparing version 0.1.12 to 0.1.13
@@ -714,3 +714,3 @@ "use strict"; | ||
if (!endM) { | ||
console.log('incomplete drawer'); | ||
console.log('incomplete drawer', this.r.line().trim()); | ||
// Incomplete drawer: parse it as a paragraph. | ||
@@ -843,3 +843,3 @@ return this.parseParagraph(affiliated); | ||
parseDiarySexp(affiliated) { | ||
const value = this.r.forceLookingAt(/(%%\(.*)[ \t]*$/)[1]; | ||
const value = this.r.forceLookingAt(/^(%%\(.*)[ \t]*$/m)[1]; | ||
this.r.advance(this.r.line()); | ||
@@ -846,0 +846,0 @@ this.parseEmptyLines(); |
@@ -108,2 +108,4 @@ "use strict"; | ||
hello`); | ||
itParses('incomplete drawer', `:NONDRAWER: | ||
I have no :END:`); | ||
describe('timestamps', () => { | ||
@@ -322,2 +324,4 @@ itParses('inactive', `[2021-01-07 Thu]`); | ||
itParses('diary sexp', `%%(diary-anniversary 10 31 1948) Arthur's birthday (%d years old)`); | ||
itParses('diary sexp with newline following', `%%(diary-anniversaries)\n`); | ||
itParses('non-closing diary sexp', `%%(I am still a diary-sexp`); | ||
describe('footnote-reference', () => { | ||
@@ -324,0 +328,0 @@ itParses('standard reference', `hello[fn:1]`); |
{ | ||
"name": "uniorg-parse", | ||
"version": "0.1.12", | ||
"version": "0.1.13", | ||
"description": "uniorg plugin to parse org-mode", | ||
@@ -49,3 +49,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "5314f10b4a598bf65fbdb6d7b098b28b805ea3d3" | ||
"gitHead": "511a4481a2c6153a1c38e40e219897edfb736e9f" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
262618
3272