mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-09 05:39:12 +00:00
Fix org-mode web renderer to handle results containing list in block
- Break out of rendering list if at end of org block in org.js - This would previous hang rendering results in web interface Should try fix this upstream in org.js as well
This commit is contained in:
6
src/khoj/interface/web/assets/org.min.js
vendored
6
src/khoj/interface/web/assets/org.min.js
vendored
@@ -614,8 +614,10 @@ var Org = (function () {
|
|||||||
var notBlankNextToken = this.lexer.peekNextToken();
|
var notBlankNextToken = this.lexer.peekNextToken();
|
||||||
if (blankToken && !notBlankNextToken.isListElement())
|
if (blankToken && !notBlankNextToken.isListElement())
|
||||||
this.lexer.pushToken(blankToken); // Recover blank token only when next line is not listElement.
|
this.lexer.pushToken(blankToken); // Recover blank token only when next line is not listElement.
|
||||||
if (notBlankNextToken.indentation <= rootIndentation)
|
// End of the list if hit less indented line or end of directive
|
||||||
break; // end of the list
|
if (notBlankNextToken.indentation <= rootIndentation ||
|
||||||
|
(notBlankNextToken.type === Lexer.tokens.directive && notBlankNextToken.endDirective))
|
||||||
|
break;
|
||||||
|
|
||||||
var element = this.parseElement(); // recursive
|
var element = this.parseElement(); // recursive
|
||||||
if (element)
|
if (element)
|
||||||
|
|||||||
Reference in New Issue
Block a user