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.