Skip to content

Conversation

facelessuser
Copy link
Collaborator

At some point the logic of counting backticks and determining if they
are odd or even was used to parse a row's text into cells.
Unfortunately this approach broke expected code parsing logic in a
table. We essentially traded one bug for another. This fixes table
backtick handling and restores sane backtick logic while preserving
existing fixes. (issue #449)


Add tests for issue #449

Odd backtics | Even backtics
Copy link
Collaborator

Choose a reason for hiding this comment

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

Backticks (also in the commit message).

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I can update the test, but I don't think there is any thing I can do about the commit message though.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Why? git commit --amend && git push --force.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Wasn't sure how that affects the pull as I think GitHub uses the message to calculate the hash. Good to know it can be done. I'll take care of it.

Copy link
Collaborator Author

@facelessuser facelessuser Jan 11, 2017

Choose a reason for hiding this comment

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

Done. Commit update worked great, thanks for letting me know. I was under the incorrect assumption that GitHub didn't support it. Wish I had know about this sooner :).

Copy link
Collaborator

Choose a reason for hiding this comment

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

Just a note for your future PRs: you could also squash the two commits into a single one by using git commit -a --amend (or git add && git commit --amend). Sorry for not being so precise in my previous reply.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Though @waylan probably uses GitHub UI for merging pull requests, and that UI has an option to squash all commits and edit the message, anyway :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Just a note for your future PRs: you could also squash the two commits into a single one by using git commit -a --amend (or git add && git commit --amend). Sorry for not being so precise in my previous reply.

Oh. That makes sense. I'm clearly not a git command line warrior; I use the GitHub app to manage my workflow (and it is very limited compared to other git GUIs). I should really play with this more and work it into my workflow. Getting out of my comfort zone and learning git better could really help.

Though @waylan probably uses GitHub UI for merging pull requests, and that UI has an option to squash all commits and edit the message, anyway :)

I hope so. Hoping to avoid another rebase :).

At some point the logic of counting backticks and determining if they are odd or even was used to parse a row's text into cells. Unfortunately this approach broke expected code parsing logic in a table. We essentially traded one bug for another. This fixes table backtick handling and restores sane backtick logic while preserving existing fixes. (issue #449)
@waylan waylan merged commit dda3311 into Python-Markdown:master Jan 11, 2017
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.

3 participants