-
Notifications
You must be signed in to change notification settings - Fork 179
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
Support for syntax highlighted code blocks #168
Comments
There is a possibility to highlight code with a function: https://nuejs.org/docs/reference/nuemark-api.html#highlighter This info box states: https://nuejs.org/docs/concepts/nuemark.html#fenced-code-blocks
|
Nue uses Syntax highlight is a very important feature that deserves a separate project—going to release that in February. |
@goblinfactory #176 (nested tabs) now work, [table] tag won't break with a comma character, and GA and other client scripts can now be configured. Working on this issue (custom syntax highlighter) next. Likely takes 1-2 weeks, since it's a relatively cool thing. |
I've added [fixed in] links in the review blogpost to the commits of where the fixed/updates you mention above have been made so that anyone reading my blog post can see it was fixed very quickly. Superb! Thank you for the rapid fixes. |
This is now done. Please check: https://nuejs.org/blog/introducing-glow/ |
@tipiirai fantastic! looking at it now. tab at the bottom of the announcement page changes the height, is shorter) causing some CLS. |
on <li role="tabpanel">...</li> this rule /* https://nuejs.org/global/css1/typo.css */
:last-child {
margin-bottom: 0px;
} interferes with /* https://nuejs.org/global/css2/special-typo.css */
li {
margin-bottom: 0.8em;
/*...*/
} which results in a layout shift for the last element of the panels in the group |
please provide native support for embedding code examples - ie. make nuejs a first class blogging platform for coders
I'd like to be able to support embedding code examples in markdown similar to how we do it in github.
For example, current nuejs has a bug, where collections are not sorted by date, so I tried to write an experimental blog post, using nuejs describing how I hacked the sorting as follows (surrounding the code block with triple ticks)
I can't even do it using
<pre>
or<code>
, that can't work!This currently renders as nothing [blank] in current version of nue. I think it ignores the triple tick and tries to compile it? Not sure. Either way, my Expectation; is for it to be rendered (htmlEncode'd) plus some default out of the box syntax colourising and formatting and developer appopriate out of the box styling, that is not affected by any other css site wide settings.
Just my 2 cents. Currently I'm having to use screenshots to capture some thoughts and feedback on nuejs. Finding it difficult to actually blog about nuejs. So this might help make nuejs easier to write about.
The text was updated successfully, but these errors were encountered: