mirror of
https://github.com/discourse/discourse.git
synced 2025-04-03 05:39:41 +08:00
Trivial: Rename dialect action to block quotes rather than simple quotes
This commit is contained in:
parent
49910b860b
commit
84a8a358c3
@ -4,7 +4,7 @@ Discourse.Dialect.on("register", function(event) {
|
|||||||
var dialect = event.dialect,
|
var dialect = event.dialect,
|
||||||
MD = event.MD;
|
MD = event.MD;
|
||||||
|
|
||||||
dialect.block["fix_simple_quotes"] = function(block, next) {
|
dialect.block["fix_block_quotes"] = function(block, next) {
|
||||||
var m = /(^|\n) +(\>[\s\S]*)/.exec(block);
|
var m = /(^|\n) +(\>[\s\S]*)/.exec(block);
|
||||||
if (m && m[2] && m[2].length) {
|
if (m && m[2] && m[2].length) {
|
||||||
var blockContents = block.replace(/(^|\n) +\>/, "$1>");
|
var blockContents = block.replace(/(^|\n) +\>/, "$1>");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user