A Flarum extension. Add cross reference links when a discussion is mentioned from another one.
This extension is mainly inspired by GitHub cross linking features. It adds similar features to Flarum forums.
(comment)
indication if it points to a specific comment#<id>
text (e.g. #42
) (option)#
is enteredThis is because the renderer is called with $request = null
.
It is probably due to another extension not setting this parameter when calling
Formatter->render()
or CommentPost->formatContent()
.
Enable Flarum's debug mode then check Flarum's log to find the source of the issue.
Here is an example of how this issue should be fixed in said extensions: the-turk/flarum-diff#35
Install with composer:
composer require club-1/flarum-ext-cross-references:"*"
This extension alone does not apply the formatting changes to previously posted comments. I you want to reparse all the comments posts of the database it is recommended to install and enable the club-1/flarum-ext-chore-commands
extension and use its chore:reparse
command.
composer update club-1/flarum-ext-cross-references:"*"
php flarum migrate
php flarum cache:clear