Update marked syntax in update checker

This commit is contained in:
Preston 2022-02-06 18:16:46 -05:00
parent f69c53522e
commit 9a7b260859
1 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ import FtButton from './components/ft-button/ft-button.vue'
import FtToast from './components/ft-toast/ft-toast.vue' import FtToast from './components/ft-toast/ft-toast.vue'
import FtProgressBar from './components/ft-progress-bar/ft-progress-bar.vue' import FtProgressBar from './components/ft-progress-bar/ft-progress-bar.vue'
import $ from 'jquery' import $ from 'jquery'
import marked from 'marked' import { marked } from 'marked'
import Parser from 'rss-parser' import Parser from 'rss-parser'
let ipcRenderer = null let ipcRenderer = null
@ -203,7 +203,7 @@ export default Vue.extend({
$.getJSON(requestUrl, (response) => { $.getJSON(requestUrl, (response) => {
const tagName = response[0].tag_name const tagName = response[0].tag_name
const versionNumber = tagName.replace('v', '').replace('-beta', '') const versionNumber = tagName.replace('v', '').replace('-beta', '')
this.updateChangelog = marked(response[0].body) this.updateChangelog = marked.parse(response[0].body)
this.changeLogTitle = response[0].name this.changeLogTitle = response[0].name
const message = this.$t('Version $ is now available! Click for more details') const message = this.$t('Version $ is now available! Click for more details')