forked from mystiq/hydrogen-web
Add js-doc for parsePlainBody
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
d671bcec31
commit
11d551f8a3
1 changed files with 5 additions and 0 deletions
|
@ -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…
Reference in a new issue