Skip to content

Commit

Permalink
fix(markdown): fix error in markdown parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
TasoOneAsia committed Jul 21, 2021
1 parent 5303c0d commit 3969f4e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
6 changes: 3 additions & 3 deletions client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ local function shutdownHandler()
end)
end

if not disableManualShutdown then
AddEventHandler('playerSpawned', shutdownHandler)
end
--if not disableManualShutdown then
-- AddEventHandler('playerSpawned', shutdownHandler)
--end

exports('shutdown', shutdownHandler)
8 changes: 0 additions & 8 deletions web/assets/markdown_parser.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
import {ENABLE_GFM_MARKDOWN, LOADSCREEN_TIPS} from "../config.js";
import {cleanUrl} from "./utils.js";

// We enable all settings for now
const md = window.markdownit({
html: true,
linkify: true,
typographer: true,
gfm: ENABLE_GFM_MARKDOWN
})

window.__openUrl = (url) => window.invokeNative ? window.invokeNative('openUrl', url) : window.open(url)

const renderer = {
Expand Down
2 changes: 1 addition & 1 deletion web/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const BACKGROUND_IMAGES = [
]

// Whether we should enable the cursor for the loadscreen
export const ENABLE_CURSOR = false
export const ENABLE_CURSOR = true

// Enable github flavored markdown
export const ENABLE_GFM_MARKDOWN = false

0 comments on commit 3969f4e

Please sign in to comment.