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
|
|
@ -26,11 +26,11 @@ namespace Yavsc
|
|||
{
|
||||
cnx.Open ();
|
||||
using (NpgsqlCommand cmd = cnx.CreateCommand ()) {
|
||||
cmd.CommandText = "drop table testbytea";
|
||||
cmd.CommandText = "drop table _testbytea";
|
||||
try { cmd.ExecuteNonQuery (); }
|
||||
catch (NpgsqlException) {
|
||||
}
|
||||
cmd.CommandText = "create table testbytea( t bytea )";
|
||||
cmd.CommandText = "create table _testbytea( t bytea )";
|
||||
cmd.ExecuteNonQuery ();
|
||||
}
|
||||
}
|
||||
|
|
@ -47,14 +47,14 @@ namespace Yavsc
|
|||
cnx.Open ();
|
||||
using (NpgsqlCommand cmd = cnx.CreateCommand ())
|
||||
{
|
||||
cmd.CommandText = "insert into testbytea (t) values (@tv)";
|
||||
cmd.CommandText = "insert into _testbytea (t) values (@tv)";
|
||||
cmd.Parameters.AddWithValue ("@tv", a);
|
||||
cmd.ExecuteNonQuery ();
|
||||
}
|
||||
|
||||
using (NpgsqlCommand cmd = cnx.CreateCommand ())
|
||||
{
|
||||
cmd.CommandText = "select t from testbytea";
|
||||
cmd.CommandText = "select t from _testbytea";
|
||||
cmd.Parameters.AddWithValue ("@tv", a);
|
||||
|
||||
NpgsqlDataReader rdr = cmd.ExecuteReader ();
|
||||
|
|
@ -77,7 +77,7 @@ namespace Yavsc
|
|||
using (NpgsqlConnection cnx = new NpgsqlConnection (ConnectionString)) {
|
||||
cnx.Open ();
|
||||
using (NpgsqlCommand cmd = cnx.CreateCommand ()) {
|
||||
cmd.CommandText = "drop table testbytea";
|
||||
cmd.CommandText = "drop table _testbytea";
|
||||
cmd.ExecuteNonQuery ();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue