Skip to content

Fix bug for nested elements in pre block text

Choose a tag to compare

@maggie-lin maggie-lin released this 03 May 14:58
· 32 commits to fullhtml since this release

Fixing bug for pre block text where nested elements display poorly because they're missing a new line.

Example:

  • Currently, this JSON example with nested elements in pre block will be formatted poorly in Slack with all the text on one line.
{  "name": "slackify-html",  "version": "1.0.0",  "description": "convert simple html to slack markdown",  "main": "slackify-html.js",  "scripts": {    "test": "tap tests.js"  }}
  • With this fix in place, this same example will display in Slack with the text of the nested elements separated by new lines.
{
  "name": "slackify-html",
  "version": "1.0.0",
  "description": "convert simple html to slack markdown",
  "main": "slackify-html.js",
  "scripts": {
    "test": "tap tests.js"
  }
}