mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-05 21:29:11 +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();
|
||||
if (blankToken && !notBlankNextToken.isListElement())
|
||||
this.lexer.pushToken(blankToken); // Recover blank token only when next line is not listElement.
|
||||
if (notBlankNextToken.indentation <= rootIndentation)
|
||||
break; // end of the list
|
||||
// End of the list if hit less indented line or end of directive
|
||||
if (notBlankNextToken.indentation <= rootIndentation ||
|
||||
(notBlankNextToken.type === Lexer.tokens.directive && notBlankNextToken.endDirective))
|
||||
break;
|
||||
|
||||
var element = this.parseElement(); // recursive
|
||||
if (element)
|
||||
|
||||
Reference in New Issue
Block a user