Page MenuHomePhabricator

D9831.id.diff
No OneTemporary

D9831.id.diff

diff --git a/src/applications/project/remarkup/ProjectRemarkupRule.php b/src/applications/project/remarkup/ProjectRemarkupRule.php
--- a/src/applications/project/remarkup/ProjectRemarkupRule.php
+++ b/src/applications/project/remarkup/ProjectRemarkupRule.php
@@ -7,6 +7,14 @@
return '#';
}
+ protected function renderObjectRef($object, $handle, $anchor, $id) {
+ if ($this->getEngine()->isTextMode()) {
+ return '#'.$id;
+ }
+
+ return $handle->renderTag();
+ }
+
protected function getObjectIDPattern() {
// NOTE: This explicitly does not match strings which contain only
// digits, because digit strings like "#123" are used to reference tasks at

File Metadata

Mime Type
text/plain
Expires
Oct 17 2024, 11:01 AM (4 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6718060
Default Alt Text
D9831.id.diff (689 B)

Event Timeline