diff --git a/tgui/packages/tgui/interfaces/ClockworkSlab.js b/tgui/packages/tgui/interfaces/ClockworkSlab.js index 56ac7b6f3a..f3e33e27e4 100644 --- a/tgui/packages/tgui/interfaces/ClockworkSlab.js +++ b/tgui/packages/tgui/interfaces/ClockworkSlab.js @@ -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. diff --git a/tgui/packages/tgui/interfaces/PaperSheet.js b/tgui/packages/tgui/interfaces/PaperSheet.js index 80e7448366..f87999dd84 100644 --- a/tgui/packages/tgui/interfaces/PaperSheet.js +++ b/tgui/packages/tgui/interfaces/PaperSheet.js @@ -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,