mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-02-08 10:38:18 +01:00
Add js-doc for parsePlainBody
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
d671bcec31
commit
11d551f8a3
@ -1,5 +1,10 @@
|
||||
import { linkify } from "./linkify/linkify.js";
|
||||
|
||||
/**
|
||||
* Parse text into parts such as newline, links and text.
|
||||
* @param {string} body A string to parse into parts
|
||||
* @returns {MessageBody} Parsed result
|
||||
*/
|
||||
export function parsePlainBody(body) {
|
||||
const parts = [];
|
||||
const lines = body.split("\n");
|
||||
|
Loading…
x
Reference in New Issue
Block a user