Update marked syntax in update checker
This commit is contained in:
parent
f69c53522e
commit
9a7b260859
|
@ -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')
|
||||||
|
|
Loading…
Reference in New Issue