Skip to content
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.

Leading <br/> is not omitted in code blocks #11

Open
LucasDachman opened this issue Jul 3, 2019 · 1 comment
Open

Leading <br/> is not omitted in code blocks #11

LucasDachman opened this issue Jul 3, 2019 · 1 comment

Comments

@LucasDachman
Copy link

Example from the slack app:
Screen Shot 2019-07-03 at 12 53 46 PM

```
some code here
```

produces <div class="slack_code"><br>some code here<br></div> in slack-hawk-down. I'd be happy to look into this if there isn't a quick fix with CSS.

@alechoey
Copy link
Contributor

You'll have to get the opening and closing matches to walk inwards until they find a non-whitespace character.

https://github.com/swiftype/slack-hawk-down/blob/master/src/index.js#L177

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants