Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13963954
D13334.id.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
D13334.id.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 @@
return array(
'names' => array(
'core.pkg.css' => 'd7ecac6d',
- 'core.pkg.js' => '288f6571',
+ 'core.pkg.js' => 'e0117d99',
'darkconsole.pkg.js' => 'e7393ebb',
'differential.pkg.css' => '02273347',
'differential.pkg.js' => 'ebef29b1',
@@ -460,7 +460,7 @@
'rsrc/js/core/behavior-object-selector.js' => '49b73b36',
'rsrc/js/core/behavior-oncopy.js' => '2926fff2',
'rsrc/js/core/behavior-phabricator-nav.js' => '14d7a8b8',
- 'rsrc/js/core/behavior-phabricator-remarkup-assist.js' => '095ed313',
+ 'rsrc/js/core/behavior-phabricator-remarkup-assist.js' => 'eeaa9e5a',
'rsrc/js/core/behavior-refresh-csrf.js' => '7814b593',
'rsrc/js/core/behavior-remarkup-preview.js' => 'f7379f45',
'rsrc/js/core/behavior-reorder-applications.js' => '76b9fc3e',
@@ -611,7 +611,7 @@
'javelin-behavior-phabricator-notification-example' => '8ce821c5',
'javelin-behavior-phabricator-object-selector' => '49b73b36',
'javelin-behavior-phabricator-oncopy' => '2926fff2',
- 'javelin-behavior-phabricator-remarkup-assist' => '095ed313',
+ 'javelin-behavior-phabricator-remarkup-assist' => 'eeaa9e5a',
'javelin-behavior-phabricator-reveal-content' => '60821bc7',
'javelin-behavior-phabricator-search-typeahead' => '048330fa',
'javelin-behavior-phabricator-show-older-transactions' => 'dbbf48b6',
@@ -885,15 +885,6 @@
'javelin-stratcom',
'javelin-vector',
),
- '095ed313' => array(
- 'javelin-behavior',
- 'javelin-stratcom',
- 'javelin-dom',
- 'phabricator-phtize',
- 'phabricator-textareautils',
- 'javelin-workflow',
- 'javelin-vector',
- ),
'0a3f3021' => array(
'javelin-behavior',
'javelin-stratcom',
@@ -1948,6 +1939,15 @@
'phabricator-phtize',
'javelin-dom',
),
+ 'eeaa9e5a' => array(
+ 'javelin-behavior',
+ 'javelin-stratcom',
+ 'javelin-dom',
+ 'phabricator-phtize',
+ 'phabricator-textareautils',
+ 'javelin-workflow',
+ 'javelin-vector',
+ ),
'efe49472' => array(
'javelin-install',
'javelin-util',
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
@@ -99,8 +99,20 @@
} else {
sel = [def];
}
- sel = sel.join('\n' + ch);
- return sel;
+
+ if (ch === '>') {
+ for(var i=0; i < sel.length; i++) {
+ if (sel[i][0] === '>') {
+ ch = '>';
+ } else {
+ ch = '> ';
+ }
+ sel[i] = ch + sel[i];
+ }
+ return sel.join('\n');
+ }
+
+ return sel.join('\n' + ch);
}
function assist(area, action, root) {
@@ -141,9 +153,9 @@
update(area, code_prefix + '```\n', sel, '\n```');
break;
case 'fa-quote-right':
- ch = '> ';
+ ch = '>';
sel = prepend_char_to_lines(ch, sel, pht('Quoted Text'));
- update(area, ((r.start === 0) ? '' : '\n\n') + ch, sel, '\n\n');
+ update(area, ((r.start === 0) ? '' : '\n\n'), sel, '\n\n');
break;
case 'fa-table':
var table_prefix = (r.start === 0 ? '' : '\n\n');
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Oct 16 2024, 6:53 PM (4 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6718669
Default Alt Text
D13334.id.diff (3 KB)
Attached To
Mode
D13334: Quoted text remarkup should be smart enough to know when to add a '>' and when to add '> '
Attached
Detach File
Event Timeline
Log In to Comment