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

Whitespace in fenced code blocks #2506

Closed
stephenturner opened this issue Jun 12, 2014 · 11 comments · Fixed by bioconnector/workshops2015#7
Closed

Whitespace in fenced code blocks #2506

stephenturner opened this issue Jun 12, 2014 · 11 comments · Fixed by bioconnector/workshops2015#7

Comments

@stephenturner
Copy link

Hi. Using redcarpet to render GFM with fenced blocks, getting an extra space on the first line in every code chunk.

jekyll new test
cd test

# use redcarpet instead of kramdown
sed -i "s/kramdown/redcarpet/g" _config.yml 

vim index.md

In index.md:


---
layout: page

---

```bash
echo "this is bash code line 1"
echo "line 2"
echo "line 3"
```

Serve with jekyll serve:

redcarpet-spaces

@kleinfreund
Copy link

Huh, strange. We had this issue and fixed it. Didn't it got merged yet? I'll have a look.

edit: See #2383 and #2380.

Which Jekyll version is this on?

@stephenturner
Copy link
Author

2.0.3

@kleinfreund
Copy link

Can you please provide a live example?

@kleinfreund
Copy link

Alright, the change from the mentioned PR is not included in this example, because GitHub Pages runs Jekyll 1.5.1.

What happens if you build locally?

@stephenturner
Copy link
Author

That is building locally (well, not jekyll build, but jekyll serve) with Jekyll 2.0.3. Renders the same locally with 2.0.3 and on github with 1.5.1.

@kleinfreund
Copy link

Then we might ask @parkr if #2083 actually got merged into 2.0.3.

@stephenturner
Copy link
Author

redcarpet

@stephenturner
Copy link
Author

Sorry @parkr - I don't know how to do this. I'm running jekyll that I got with gem install, not building from source. If you'd give me some instructions on how to do this I'm happy to provide feedback with what worked and what didn't.

(Btw, gif created with GPL/FOSS LiceCAP).

@parkr
Copy link
Member

parkr commented Jul 31, 2014

Is this still an issue?

@stephenturner
Copy link
Author

thanks

@jekyll jekyll locked and limited conversation to collaborators Feb 27, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants