Ref T13105. Although Markdown is trickier to deal with, we can handle Remarkup easily.
This may need some support for encoding options.
Differential D19251
Add a basic Remarkup document rendering engine epriestley on Mar 23 2018, 11:04 AM. Authored by Tags None Referenced Files
Subscribers Tokens
Details Ref T13105. Although Markdown is trickier to deal with, we can handle Remarkup easily. This may need some support for encoding options. Viewed .remarkup files, got remarkup document presentation by default. Viewed other text files, got an option to render as remarkup.
Diff Detail
Event TimelineComment Actions \z is a "better" version of $ and should usually be used instead of $:
This usually doesn't matter, but can occasionally be important, as in D8516. Comment Actions if you were writing a custom DocumentEngine for say .myformat which is perhaps traditionally mapped to the mime type of text/plain, then I'm guessing adding the following, is a good way to get your engine to be picked as the "default" viewer protected function getContentScore(PhabricatorDocumentRef $ref) { $name = $ref->getName(); if (preg_match('/\\.myformat\z/i', $name)) { return 2000; } return 500; } |