Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14004918
D8597.id20385.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
4 KB
Referenced Files
None
Subscribers
None
D8597.id20385.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
@@ -7,7 +7,7 @@
return array(
'names' =>
array(
- 'core.pkg.css' => '4877abce',
+ 'core.pkg.css' => '5e574aa1',
'core.pkg.js' => '264721e1',
'darkconsole.pkg.js' => 'ca8671ce',
'differential.pkg.css' => 'cb97e095',
@@ -111,7 +111,7 @@
'rsrc/css/application/tokens/tokens.css' => 'fb286311',
'rsrc/css/application/uiexample/example.css' => '4741b891',
'rsrc/css/core/core.css' => 'da26ddb2',
- 'rsrc/css/core/remarkup.css' => 'b4407c57',
+ 'rsrc/css/core/remarkup.css' => '0923dbd6',
'rsrc/css/core/syntax.css' => '3c18c1cb',
'rsrc/css/core/z-index.css' => '0fd29d49',
'rsrc/css/diviner/diviner-shared.css' => '38813222',
@@ -707,7 +707,7 @@
'phabricator-prefab' => '0326e5d0',
'phabricator-profile-css' => '9bdb9804',
'phabricator-project-tag-css' => '095c9404',
- 'phabricator-remarkup-css' => 'b4407c57',
+ 'phabricator-remarkup-css' => '0923dbd6',
'phabricator-search-results-css' => 'f240504c',
'phabricator-settings-css' => 'ea8f5915',
'phabricator-shaped-request' => 'dfa181a4',
diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php
--- a/src/__phutil_library_map__.php
+++ b/src/__phutil_library_map__.php
@@ -1890,6 +1890,7 @@
'PhabricatorRemarkupControl' => 'view/form/control/PhabricatorRemarkupControl.php',
'PhabricatorRemarkupCustomBlockRule' => 'infrastructure/markup/rule/PhabricatorRemarkupCustomBlockRule.php',
'PhabricatorRemarkupCustomInlineRule' => 'infrastructure/markup/rule/PhabricatorRemarkupCustomInlineRule.php',
+ 'PhabricatorRemarkupExample' => 'applications/uiexample/examples/PhabricatorRemarkupExample.php',
'PhabricatorRemarkupRuleEmbedFile' => 'applications/files/remarkup/PhabricatorRemarkupRuleEmbedFile.php',
'PhabricatorRemarkupRuleImageMacro' => 'applications/macro/remarkup/PhabricatorRemarkupRuleImageMacro.php',
'PhabricatorRemarkupRuleMeme' => 'applications/macro/remarkup/PhabricatorRemarkupRuleMeme.php',
@@ -4682,6 +4683,7 @@
'PhabricatorRemarkupControl' => 'AphrontFormTextAreaControl',
'PhabricatorRemarkupCustomBlockRule' => 'PhutilRemarkupEngineBlockRule',
'PhabricatorRemarkupCustomInlineRule' => 'PhutilRemarkupRule',
+ 'PhabricatorRemarkupExample' => 'PhabricatorUIExample',
'PhabricatorRemarkupRuleEmbedFile' => 'PhabricatorRemarkupRuleObject',
'PhabricatorRemarkupRuleImageMacro' => 'PhutilRemarkupRule',
'PhabricatorRemarkupRuleMeme' => 'PhutilRemarkupRule',
diff --git a/src/applications/uiexample/examples/PhabricatorRemarkupExample.php b/src/applications/uiexample/examples/PhabricatorRemarkupExample.php
new file mode 100644
--- /dev/null
+++ b/src/applications/uiexample/examples/PhabricatorRemarkupExample.php
@@ -0,0 +1,57 @@
+<?php
+
+final class PhabricatorRemarkupExample extends PhabricatorUIExample {
+
+ public function getName() {
+ return pht('Remarkup');
+ }
+
+ public function getDescription() {
+ return pht(
+ 'Demonstrates the visual appearance of various Remarkup elements.');
+ }
+
+ public function renderExample() {
+ $viewer = $this->getRequest()->getUser();
+
+ $content = pht(<<<EOCONTENT
+This is some **remarkup text** using ~~exactly one style~~ //various styles//.
+
+ - Fruit
+ - Apple
+ - Banana
+ - Cherry
+ - Vegetables
+ 1. Carrot
+ 2. Celery
+
+NOTE: This is a note.
+
+(NOTE) This is also a note.
+
+WARNING: This is a warning.
+
+(WARNING) This is also a warning.
+
+IMPORTANT: This is not really important.
+
+(IMPORTANT) This isn't important either.
+
+EOCONTENT
+);
+
+ $remarkup = PhabricatorMarkupEngine::renderOneObject(
+ id(new PhabricatorMarkupOneOff())->setContent($content),
+ 'default',
+ $viewer);
+
+ $frame = id(new PHUIBoxView())
+ ->addPadding(PHUI::PADDING_LARGE)
+ ->appendChild($remarkup);
+
+ return id(new PHUIObjectBoxView())
+ ->setHeaderText(pht('Remarkup Example'))
+ ->appendChild($frame);
+ }
+
+}
diff --git a/webroot/rsrc/css/core/remarkup.css b/webroot/rsrc/css/core/remarkup.css
--- a/webroot/rsrc/css/core/remarkup.css
+++ b/webroot/rsrc/css/core/remarkup.css
@@ -198,6 +198,11 @@
background: {$lightred};
}
+.phabricator-remarkup .remarkup-note-word {
+ font-weight: bold;
+ color: {$darkbluetext};
+}
+
.phabricator-remarkup-toc {
float: right;
border: 1px solid {$lightblueborder};
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Oct 28, 5:17 AM (2 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6751946
Default Alt Text
D8597.id20385.diff (4 KB)
Attached To
Mode
D8597: Make the "NOTE:" text bold and slightly darker
Attached
Detach File
Event Timeline
Log In to Comment