Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Option to escape curly brackets in codeblocks #791

Closed
georgeedwards opened this issue Aug 22, 2016 · 2 comments
Closed

Comments

@georgeedwards
Copy link

georgeedwards commented Aug 22, 2016

As discussed here, if a code block contains { or }, it can cause issues with front end frameworks. It would be really useful to set an option to auto-escape brackets in the code block. i.e.

```
    @import { url('~/platform.css') };
```

=>

<code>
{{'@import { url(&#39;~/platform.css&#39;) };'}}
</code>
@georgeedwards
Copy link
Author

Possibly a better approach would be to parse and curly brackets in code blocks as &#123; and &#125;?

@joshbruce
Copy link
Member

#983

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

No branches or pull requests

2 participants