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

fix: table formatter image preview URL encode #1678

Merged
merged 2 commits into from
Feb 10, 2017
Merged

Conversation

patrickhulce
Copy link
Collaborator

@patrickhulce patrickhulce commented Feb 10, 2017

R: @ebidel all

Image previews were broken for URLs with ) since markdown can't handle them

Before
image

After
image

Copy link
Member

@brendankenny brendankenny left a comment

Choose a reason for hiding this comment

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

nice catch

@brendankenny
Copy link
Member

upstream issue: markedjs/marked#619 (looks like it won't be fixed)

@patrickhulce
Copy link
Collaborator Author

FWIW in defense of marked I think it's actually an artifact of the markdown spec itself. There's no guarantee in an arbitrary link that an opening paren will be followed by a close paren.

Also relevant http://meta.stackexchange.com/questions/13501/links-to-urls-containing-parentheses

@ebidel
Copy link
Contributor

ebidel commented Feb 10, 2017

🚫 🖼

@brendankenny
Copy link
Member

the markdown spec itself

"spec" :)

@brendankenny brendankenny merged commit 0cb9209 into master Feb 10, 2017
@brendankenny brendankenny deleted the fix_table_formatter branch February 10, 2017 01:26
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.

None yet

3 participants