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

remove strip_math_space #4313

Merged
merged 1 commit into from Oct 6, 2013
Merged

remove strip_math_space #4313

merged 1 commit into from Oct 6, 2013

Conversation

minrk
Copy link
Member

@minrk minrk commented Sep 30, 2013

I don't think it solves any problems with supported pandoc versions, and it does introduce new ones.

Unless someone can come up with a case where it actually solves a problem, it should be removed.

closes #4309
supersedes #4310

@jdfreder
Copy link
Member

Maybe it would be nice to state what version(s) of Pandoc we support here

@damianavila
Copy link
Member

But... Does Pandoc reconize math with spaces (or support the remove of them)? There is people writing math with spaces around it, because the notebook support the render of the math in this form...

@jdfreder
Copy link
Member

ut... Does Pandoc reconize math with spaces (or support the remove of them)? There is people writing math with spaces around it, because the notebook support the render of the math in this form...

It didn't in the earlier versions, but we only support 1.10 and later, and it seems to work with the later.

@jakobgager
Copy link
Contributor

@jdfreder in #3503 (comment) you mentioned the strip_math_space filter to be used in combination with the extended md2latex approach. Is this still required here?

@jdfreder
Copy link
Member

Is this still required here?

No, in the comment above I pasted the pandoc --version output,

The approach I suggested above doesn't seem to work for the latest, Pandoc 1.9.4.2

I wasn't using 1.10+ (looks like compiling Pandoc from source and installing it didn't override the install that already existed on my machine)

@jakobgager
Copy link
Contributor

I'm +1 with removing and would suggest to not backport this, then 1.x.0 can be used with pandoc < 1.10 (and python < 2.7).

@damianavila
Copy link
Member

It didn't in the earlier versions, but we only support 1.10 and later, and it seems to work with the later.

+1

# Generate Pygments definitions for Latex
from pygments.formatters import LatexFormatter

resources["latex"].setdefault({})
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

resources["latex"].setdefault({})
AttributeError: 'str' object has no attribute 'setdefault'

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't know how I did that, it's not remotely the right syntax. Fixed now.

I don't think it solves any problems with supported pandoc versions,
and it does introduce new ones.

closes ipython#4309
supersedes ipython#4310
@Carreau
Copy link
Member

Carreau commented Oct 3, 2013

+1

@Carreau
Copy link
Member

Carreau commented Oct 6, 2013

Merging. Thanks.

Carreau added a commit that referenced this pull request Oct 6, 2013
remove strip_math_space, not usefull anymore with recent version of pandoc.
@Carreau Carreau merged commit 68c851f into ipython:master Oct 6, 2013
@minrk minrk deleted the remove-math-space branch March 31, 2014 23:36
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
remove strip_math_space, not usefull anymore with recent version of pandoc.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error in nbconvert - closing </code> tag is not inserted in HTML under some circumstances
5 participants