mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-24 00:35:26 +03:00
Presets: support Marked description layout
This commit is contained in:
parent
989816a2e1
commit
35d7cb699c
9 changed files with 82 additions and 10 deletions
|
@ -84,10 +84,9 @@ firmware_flasher.initialize = function (callback) {
|
|||
|
||||
let formattedNotes = summary.notes.replace(/#(\d+)/g, '[#$1](https://github.com/betaflight/betaflight/pull/$1)');
|
||||
formattedNotes = marked.parse(formattedNotes);
|
||||
formattedNotes = DOMPurify.sanitize(formattedNotes);
|
||||
$('div.release_info .notes').html(formattedNotes);
|
||||
$('div.release_info .notes').find('a').each(function() {
|
||||
$(this).attr('target', '_blank');
|
||||
});
|
||||
GUI.addLinksTargetBlank($('div.release_info .notes'));
|
||||
|
||||
if (self.releases) {
|
||||
$('div.release_info').slideDown();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue