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

Fenced code indentation issues with $. #186

Closed
mforbes opened this issue Jul 7, 2015 · 6 comments
Closed

Fenced code indentation issues with $. #186

mforbes opened this issue Jul 7, 2015 · 6 comments

Comments

@mforbes
Copy link

mforbes commented Jul 7, 2015

In a notebook, the following indented code cell is not properly rendered:

1. This code is in a enumerated list so the block needs to be indented:

   ```bash
   laptop ~$ ssh-agent bash
   laptop ~$ ssh-add
   ``` # This comment required to prevent github from treating this as the closing fence.

2. If the previous block is not indented, this will restart as number 1.

This renders roughly as as

1. This code is in a enumerated list so the block needs to be indented:

    laptop ~$ ssh-agent bash
        laptop ~$ ssh-add
...

where the second code line is indented. It has something to do with the $. The indented block is probably not being registed as a proper code block to whatever looks for equations.

@hellpanderrr
Copy link

It's the dollar sign. You can use the "$" sign instead or try this:

1. This code is in a enumerated list so the block needs to be indented:

   ```bash
   laptop ~```$``` ssh-agent bash
   laptop ~```$``` ssh-add
   ``` # This comment required to prevent github from treating this as the closing fence.

2. If the previous block is not indented, this will restart as number 1.

@minrk minrk added this to the 5.0 milestone Sep 11, 2015
@ellisonbg ellisonbg added the bug label Oct 6, 2015
@horta
Copy link

horta commented Jun 21, 2016

Thanks for the $ substitute. Works for now =)

@minrk minrk modified the milestones: Backlog, 5.0 Jan 25, 2017
@JamiesHQ
Copy link
Member

@mforbes : We're doing a little housekeeping on our issue log and I noticed this thread from 2015. Has this issue been resolved to your satisfaction and can it be closed? thanks!

@mforbes
Copy link
Author

mforbes commented Apr 25, 2017

@JamiesHQ It appears to still be an issue with notebook server is 5.0.0.

@JamiesHQ
Copy link
Member

thanks @mforbes !

cc'ing @gnestor who is leading notebook development.

@gnestor
Copy link
Contributor

gnestor commented Apr 25, 2017

@mforbes The notebook uses the marked library to render markdown, so I think that an issue should be opened there. Here is a similar issue that's currently open on marked: markedjs/marked#712

@gnestor gnestor modified the milestones: Not Notebook, Backlog Apr 27, 2017
@gnestor gnestor closed this as completed Dec 6, 2017
@gnestor gnestor modified the milestones: Not Notebook, Reference Dec 6, 2017
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants