mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-17 15:53:28 +00:00
modified markdown file view for ie8
This commit is contained in:
@@ -183,12 +183,12 @@
|
||||
{% endif %}
|
||||
{% if filetype == 'Markdown' %}
|
||||
$.ajax({
|
||||
url: '{{ raw_path }}',
|
||||
dataType: 'text',
|
||||
url: url,
|
||||
dataType: 'json',
|
||||
cache: false,
|
||||
success: function(data) {
|
||||
var converter = new Showdown.converter();
|
||||
$('#file-view').html('<div id="md-view">' + converter.makeHtml(data) + '</div>');
|
||||
$('#file-view').html('<div id="md-view">' + converter.makeHtml(data['content']) + '</div>');
|
||||
$('#md-view').children(':first').css('margin-top', '0');
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user