diff --git a/client/homebrew/pages/errorPage/errors/errorIndex.js b/client/homebrew/pages/errorPage/errors/errorIndex.js index 5c21b719c..fe8e505e5 100644 --- a/client/homebrew/pages/errorPage/errors/errorIndex.js +++ b/client/homebrew/pages/errorPage/errors/errorIndex.js @@ -3,14 +3,15 @@ import _ from 'lodash'; const loginUrl = 'https://www.naturalcrit.com/login'; +// Prevent parsing text (e.g. document titles) as markdown +const escape = (text) => { + return text.split('').map(char => `\\${char}`).join(''); +}; + //001-050 : Brew errors //050-100 : Other pages errors const errorIndex = (props)=>{ - const escape = (text) => { - return text.split('').map(char => `\\${char}`).join(''); - }; - return { // Default catch all '00' : dedent`