minor style change
This commit is contained in:
parent
c4a2e62a95
commit
011d3cf779
app/assets/javascripts/discourse/dialects
|
@ -18,7 +18,8 @@ Discourse.Dialect.on("register", function(event) {
|
||||||
@return {Array} the JsonML containing the markup or undefined if nothing changed.
|
@return {Array} the JsonML containing the markup or undefined if nothing changed.
|
||||||
@namespace Discourse.Dialect
|
@namespace Discourse.Dialect
|
||||||
**/
|
**/
|
||||||
dialect.block['github_code'] = function githubCode(block, next) {
|
dialect.block.github_code = function githubCode(block, next) {
|
||||||
|
|
||||||
var m = /^`{3}([^\n]+)?\n?([\s\S]*)?/gm.exec(block);
|
var m = /^`{3}([^\n]+)?\n?([\s\S]*)?/gm.exec(block);
|
||||||
|
|
||||||
if (m) {
|
if (m) {
|
||||||
|
|
Loading…
Reference in New Issue