-
-
Notifications
You must be signed in to change notification settings - Fork 5k
feat(backtick): support 'wrap' option #3827
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
Conversation
Pending release of hexojs/hexo-util#112. Released. |
Pending #3829 to test compatibility with [email protected]. |
@curbengh Thank you for making this PR! BTW, do you think about I think whether {% codeblock lang:js line_number:false wrap:false %}
const obj = {
foo: 123
};
{% endcodeblock %} If "yes", we should update document later. Maybe it is better to make new PR about |
+1 on that, in a separate PR. |
8132e0c
to
fb913ca
Compare
Rebased to include #3829 |
What does it do?
Continuation of hexojs/hexo-util#112.
Alternative (less breaking than
hljs: true
) approach to #3766wrap
is currently enabled by default, so codeblock is wrapped in<table>
; disable it for simpler/shorter<pre><code>
.All credit to @seaoak
How to test
Pull request tasks