Markdown video and audio, supported at client side
* BlogsController.cs: Fixes the Markdown usage of the uploaded files: Files are now renamed by dropping invalid characters and replacing spaces by underscores. An existing destination file is removed at upload. * showdown.js: Renders audio and video at client side * to-markdown.js: converts html audio and video to Markdown * TestByteA.cs: adds a prefix, an underscore, to the test table `_testbytea` * Edit.aspx: Uses the new `showdown` javascript module (that previously was named `Showdown`) * Web.csproj: cleaning * MarkdownDeep.dll: Renders video an audio * GruntFile.js: Was pollution
This commit is contained in:
parent
77149697dd
commit
9912d0cbb2
9 changed files with 2357 additions and 432 deletions
|
|
@ -29,6 +29,7 @@
|
|||
<%=Html.Hidden("Id")%>
|
||||
<input type="submit">
|
||||
<% } %>
|
||||
|
||||
<script>
|
||||
jQuery('#vtitle').hallo({
|
||||
plugins: {
|
||||
|
|
@ -54,8 +55,8 @@ var markdownize = function(content) {
|
|||
}).join("\n");
|
||||
return toMarkdown(html);
|
||||
};
|
||||
var converter = new Showdown.converter();
|
||||
var htmlize = function(content) {
|
||||
var converter = new showdown.Converter(),
|
||||
htmlize = function(content) {
|
||||
return converter.makeHtml(content);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue