allow sending sub,sup and whitelist them on receive

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2017-09-13 12:04:46 +01:00
parent 738c81b506
commit a0855a2869
No known key found for this signature in database
GPG key ID: 3F879DA5AD802A5E
2 changed files with 3 additions and 3 deletions

View file

@ -17,7 +17,7 @@ limitations under the License.
import commonmark from 'commonmark';
import escape from 'lodash/escape';
const ALLOWED_HTML_TAGS = ['del', 'u'];
const ALLOWED_HTML_TAGS = ['sub', 'sup', 'del', 'u'];
// These types of node are definitely text
const TEXT_NODES = ['text', 'softbreak', 'linebreak', 'paragraph', 'document'];