Fix pills for CIDER too
This commit is contained in:
parent
2824f468d9
commit
ce0a534db1
6 changed files with 27 additions and 7 deletions
|
@ -16,6 +16,7 @@ limitations under the License.
|
|||
*/
|
||||
|
||||
import Markdown from '../Markdown';
|
||||
import {makeGenericPermalink} from "../utils/permalinks/RoomPermalinkCreator";
|
||||
|
||||
export function mdSerialize(model) {
|
||||
return model.parts.reduce((html, part) => {
|
||||
|
@ -29,7 +30,7 @@ export function mdSerialize(model) {
|
|||
return html + part.text;
|
||||
case "room-pill":
|
||||
case "user-pill":
|
||||
return html + `[${part.text}](https://matrix.to/#/${part.resourceId})`;
|
||||
return html + `[${part.text}](${makeGenericPermalink(part.resourceId)})`;
|
||||
}
|
||||
}, "");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue