From 4012774dd688abad2d81d394f9c61c12038c8fb9 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Thu, 30 Nov 2017 17:53:25 +0200 Subject: [PATCH] Update jsdocs --- src/formatter.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/formatter.js b/src/formatter.js index 282d8573..67a9c89c 100644 --- a/src/formatter.js +++ b/src/formatter.js @@ -16,8 +16,8 @@ /** * Utility functions to convert between Telegram and Matrix (HTML) formatting. - * - * WARNING: This module contains headache-causing regular expressions and other duct tape. + *

+ * WARNING: This module contains headache-causing regular expressions and other duct tape. * * @module formatter */ @@ -38,10 +38,8 @@ function addTag(tags, entity, tag, attrs, priority = 0) { /** * Convert a Telegram entity-formatted message to a Matrix HTML-formatted message. - * - * WARNING: I am not responsible for possible severe headaches caused by reading any part of this function. - * While there are a few explaining comments, I haven't even tried to figure out why it works. - * The tag priorities are especially non-understandable. You have been warned. + *

+ * WARNING: I am not responsible for possible severe headaches caused by reading any part of this function. * * @param {string} message The plaintext message. * @param {Array} entities The Telegram formatting entities.