mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-25 17:25:14 +03:00
Format the markdown in the release notes as HTML
This commit is contained in:
parent
b01405139e
commit
024561b64d
4 changed files with 12 additions and 6 deletions
|
@ -56,6 +56,7 @@ sources.js = [
|
|||
'./js/libraries/google-analytics-bundle.js',
|
||||
'./node_modules/jquery/dist/jquery.min.js',
|
||||
'./node_modules/jquery-ui-npm/jquery-ui.min.js',
|
||||
'./node_modules/marked/lib/marked.js',
|
||||
'./js/libraries/d3.min.js',
|
||||
'./js/libraries/jquery.nouislider.all.min.js',
|
||||
'./node_modules/three/three.min.js',
|
||||
|
|
10
package-lock.json
generated
10
package-lock.json
generated
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "inav-configurator",
|
||||
"version": "1.8.1",
|
||||
"version": "1.9.2",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
@ -2897,7 +2897,7 @@
|
|||
"escape-string-regexp": "1.0.5",
|
||||
"js2xmlparser": "3.0.0",
|
||||
"klaw": "2.0.0",
|
||||
"marked": "0.3.9",
|
||||
"marked": "0.3.17",
|
||||
"mkdirp": "0.5.1",
|
||||
"requizzle": "0.2.1",
|
||||
"strip-json-comments": "2.0.1",
|
||||
|
@ -3218,9 +3218,9 @@
|
|||
"integrity": "sha1-wyq9C9ZSXZsFFkW7TyasXcmKDb8="
|
||||
},
|
||||
"marked": {
|
||||
"version": "0.3.9",
|
||||
"resolved": "https://registry.npmjs.org/marked/-/marked-0.3.9.tgz",
|
||||
"integrity": "sha512-nW5u0dxpXxHfkHzzrveY45gCbi+R4PaO4WRZYqZNl+vB0hVGeqlFn0aOg1c8AKL63TrNFn9Bm2UP4AdiZ9TPLw=="
|
||||
"version": "0.3.17",
|
||||
"resolved": "https://registry.npmjs.org/marked/-/marked-0.3.17.tgz",
|
||||
"integrity": "sha512-+AKbNsjZl6jFfLPwHhWmGTqE009wTKn3RTmn9K8oUKHrX/abPJjtcRtXpYB/FFrwPJRUA86LX/de3T0knkPCmQ=="
|
||||
},
|
||||
"merge": {
|
||||
"version": "1.2.0",
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
"inflection": "1.12.0",
|
||||
"jquery": "2.1.4",
|
||||
"jquery-ui-npm": "1.12.0",
|
||||
"marked": "^0.3.17",
|
||||
"nw": "^0.25.4-sdk",
|
||||
"nw-builder": "^3.4.1",
|
||||
"openlayers": "^4.6.4",
|
||||
|
|
|
@ -319,8 +319,12 @@ TABS.firmware_flasher.initialize = function (callback) {
|
|||
$('div.release_info .status').text(summary.status);
|
||||
$('div.release_info .file').text(summary.file).prop('href', summary.url);
|
||||
|
||||
var formattedNotes = summary.notes.trim('\r').replace(/\r/g, '<br />');
|
||||
var formattedNotes = marked(summary.notes);
|
||||
$('div.release_info .notes').html(formattedNotes);
|
||||
// Make links in the release notes open in a new window
|
||||
$('div.release_info .notes a').each(function () {
|
||||
$(this).attr('target', '_blank');
|
||||
});
|
||||
|
||||
$('div.release_info').slideDown();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue