Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15302779
D9379.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
3 KB
Referenced Files
None
Subscribers
None
D9379.diff
View Options
diff --git a/resources/celerity/map.php b/resources/celerity/map.php
--- a/resources/celerity/map.php
+++ b/resources/celerity/map.php
@@ -8,7 +8,7 @@
'names' =>
array(
'core.pkg.css' => 'f16eaa39',
- 'core.pkg.js' => '639b2433',
+ 'core.pkg.js' => '8325407e',
'darkconsole.pkg.js' => 'ca8671ce',
'differential.pkg.css' => '4a93db37',
'differential.pkg.js' => 'eca39a2c',
@@ -462,7 +462,7 @@
'rsrc/js/core/behavior-object-selector.js' => 'e6f67523',
'rsrc/js/core/behavior-oncopy.js' => 'c3e218fe',
'rsrc/js/core/behavior-phabricator-nav.js' => 'b5842a5e',
- 'rsrc/js/core/behavior-phabricator-remarkup-assist.js' => 'c021950a',
+ 'rsrc/js/core/behavior-phabricator-remarkup-assist.js' => 'ddee74db',
'rsrc/js/core/behavior-refresh-csrf.js' => '7814b593',
'rsrc/js/core/behavior-remarkup-preview.js' => 'f7379f45',
'rsrc/js/core/behavior-reorder-applications.js' => 'a8e3795d',
@@ -605,7 +605,7 @@
'javelin-behavior-phabricator-notification-example' => 'c51a6616',
'javelin-behavior-phabricator-object-selector' => 'e6f67523',
'javelin-behavior-phabricator-oncopy' => 'c3e218fe',
- 'javelin-behavior-phabricator-remarkup-assist' => 'c021950a',
+ 'javelin-behavior-phabricator-remarkup-assist' => 'ddee74db',
'javelin-behavior-phabricator-reveal-content' => '8f24abfc',
'javelin-behavior-phabricator-search-typeahead' => '86549ee3',
'javelin-behavior-phabricator-show-all-transactions' => '7c273581',
@@ -1745,16 +1745,6 @@
1 => 'javelin-dom',
2 => 'javelin-reactor-dom',
),
- 'c021950a' =>
- array(
- 0 => 'javelin-behavior',
- 1 => 'javelin-stratcom',
- 2 => 'javelin-dom',
- 3 => 'phabricator-phtize',
- 4 => 'phabricator-textareautils',
- 5 => 'javelin-workflow',
- 6 => 'javelin-vector',
- ),
'c293f7b9' =>
array(
0 => 'javelin-install',
@@ -1915,6 +1905,16 @@
1 => 'javelin-dom',
2 => 'phabricator-prefab',
),
+ 'ddee74db' =>
+ array(
+ 0 => 'javelin-behavior',
+ 1 => 'javelin-stratcom',
+ 2 => 'javelin-dom',
+ 3 => 'phabricator-phtize',
+ 4 => 'phabricator-textareautils',
+ 5 => 'javelin-workflow',
+ 6 => 'javelin-vector',
+ ),
'e1ff79b1' =>
array(
0 => 'javelin-behavior',
diff --git a/webroot/rsrc/js/core/behavior-phabricator-remarkup-assist.js b/webroot/rsrc/js/core/behavior-phabricator-remarkup-assist.js
--- a/webroot/rsrc/js/core/behavior-phabricator-remarkup-assist.js
+++ b/webroot/rsrc/js/core/behavior-phabricator-remarkup-assist.js
@@ -131,9 +131,8 @@
break;
case 'code':
sel = sel || "foreach ($list as $item) {\n work_miracles($item);\n}";
- sel = sel.split("\n");
- sel = " " + sel.join("\n ");
- update(area, ((r.start === 0) ? "" : "\n\n"), sel, "\n\n");
+ var prefix = (r.start === 0) ? "" : "\n";
+ update(area, prefix + "```\n", sel, "\n```");
break;
case 'table':
var prefix = (r.start === 0 ? '' : '\n\n');
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Mar 6, 9:37 PM (11 h, 58 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7309211
Default Alt Text
D9379.diff (3 KB)
Attached To
Mode
D9379: Changed behavior of "code block" button to use triple tick syntax ("```") instead of whitespacing.
Attached
Detach File
Event Timeline
Log In to Comment