We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 854a664 commit 3d8a24cCopy full SHA for 3d8a24c
assets/javascripts/patch-list.js
@@ -3,9 +3,10 @@ $(function() {
3
4
$.getJSON("//vim-jp.herokuapp.com/patches/json?callback=?", function(items) {
5
$.each(items, function() {
6
+ var desc = $('<div/>').html(this.description).text().replace(/^[^\n]*\n\n/, '').replace(/\n(?=Solution:)/, '<br/>')
7
$('<li/>').append(
8
$('<a/>').attr({'href': this.link, 'target': '_blank'}).text("Patch " + this.title)
- ).append($('<br/>')).append($('<span/>').text(this.description)).appendTo('#patches-list');
9
+ ).append($('<br/>')).append($('<span/>').html(desc)).appendTo('#patches-list');
10
});
11
12
0 commit comments