Merge pull request #15483 from Arturlang/paperSheet
Fixes linter errors && PaperSheet not working
This commit is contained in:
@@ -54,10 +54,10 @@ export const ClockworkSlab = (props, context) => {
|
||||
// Flatten all categories and apply search to it
|
||||
// truthy because WE DO NOT WANT TO RETURN THIS!
|
||||
&& !!map((v, k) => {
|
||||
bucketOfScriptures = bucketOfScriptures.concat(v);
|
||||
})(scripture)
|
||||
bucketOfScriptures = bucketOfScriptures.concat(v);
|
||||
})(scripture)
|
||||
&& bucketOfScriptures.filter(testSearch)
|
||||
.filter((item, i) => i < MAX_SEARCH_RESULTS)
|
||||
.filter((item, i) => i < MAX_SEARCH_RESULTS)
|
||||
// Return the default one
|
||||
|| scripture[tab]
|
||||
|| null; // this is nullable, it's recommended that you null it.
|
||||
|
||||
@@ -5,12 +5,13 @@
|
||||
* @author Changes stylemistake
|
||||
* @author Changes ThePotato97
|
||||
* @author Changes Ghommie
|
||||
* @author Changes Artur_Lang
|
||||
* @license MIT
|
||||
*/
|
||||
|
||||
import { classes } from 'common/react';
|
||||
import { Component } from 'inferno';
|
||||
import marked from 'marked';
|
||||
import { marked } from 'marked';
|
||||
import { useBackend } from '../backend';
|
||||
import { Box, Flex, Tabs, TextArea } from '../components';
|
||||
import { Window } from '../layouts';
|
||||
@@ -119,7 +120,7 @@ const run_marked_default = value => {
|
||||
break;
|
||||
}
|
||||
};
|
||||
return marked(value, {
|
||||
return marked.parse(value, {
|
||||
breaks: true,
|
||||
smartypants: true,
|
||||
smartLists: true,
|
||||
|
||||
Reference in New Issue
Block a user