-
Notifications
You must be signed in to change notification settings - Fork 153
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
Markdown highlighting issue #412
Comments
Hi, thanks for the report 👍 AFAIK, the site gets deployed for every commit to master. I assume that the relevant change was #405 which fixed another markdown issue we had with newer versions of Buffalo and plush (see #404). @sio4 and I tried to fix this behavior in gobuffalo/plush#77 but it appears to still be incomplete. Looking at the html source code, there is a part that's being escaped (the div-part in your first image): <pre><code></div>
--
| <div class="col-md-6 col-sm-12">
| <h5><code>buffalo new coke</code></h5>
| <div class="highlight highlight-bash"><pre>├── Dockerfile
| </code></pre> Im not sure why this is happening. Also (at least on my mobile device) the source code highlighting further down ("Tuned actions/app.go actions/render.go Files") is also odd (having some white background). The relevant html code: <div class="highlight highlight-go"><pre>func App() *buffalo.App {</p>
--
|
| <pre><code>if app == nil { #413 is caused by code tabs not getting handled in the partial, it might have a similar cause. |
OMG! interesting! it seems like we need to dig into the markdown parser! |
So this indeed seems to again be related to the partials (but maybe not alone). If I remove the indentation of the html code in What happens is that the markdown parser interprets the indentation as code formatting for the html - which conforms to the docs: https://guides.github.com/features/mastering-markdown/ I will dive into plush once more and try to figure out why it's getting misinterpreted. |
Same goes for the issue in syntax highlighting further down the page: |
The main issue should be fixed with gobuffalo/plush#81 The issue regarding source code highlighting is documented in gobuffalo/plush#82 I didn't dig into #413 yet so I can't really tell if it's related. I guess it's not, though. |
It looks like the markdown highlighting is not working properly. The worst example I see so far is:
https://gobuffalo.io/en/docs/apis (see below for screenshot).
I've been on the docs a bit over the last week or so and I almost certain they were not doing this up until recently. I looked over some recent commits and couldn't tell if any caused this (though I'm not sure how to check when this site got deployed last).
I did run the site locally and was able to reproduce. Interestingly, if you remove the
bash
portion of the```bash
markdown it looks like it fixes the rendering (but you lose some formatting). I'm assuming this is an issue with a library.The problem
Removing
bash
fixes it (in a way)The text was updated successfully, but these errors were encountered: