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

Rubocop: converters #4931

Merged
merged 4 commits into from
May 26, 2016
Merged

Rubocop: converters #4931

merged 4 commits into from
May 26, 2016

Conversation

pathawks
Copy link
Member

No description provided.

@@ -17,19 +18,20 @@ def block_code(code, lang)
Jekyll::External.require_with_graceful_fail("pygments")
lang = lang && lang.split.first || "text"
add_code_tags(
Pygments.highlight(code, :lexer => lang, :options => { :encoding => 'utf-8' }),
Pygments.highlight(code, :lexer => lang, :options => \
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this should just be split up into a multiline hash.

@envygeeks
Copy link
Contributor

Thanks! Just a few comments.

end
def convert(content)
@redcarpet_extensions[:fenced_code_blocks] = \
!@redcarpet_extensions[:no_fenced_code_blocks]
Copy link
Member Author

Choose a reason for hiding this comment

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

Without breaking this up, the line is 97 characters instead of 90 😕

@pathawks pathawks changed the title Fix Rubocop warnings in lib/jekyll/converters Rubocop: converters May 24, 2016
@pathawks
Copy link
Member Author

#4885

@pathawks
Copy link
Member Author

@envygeeks Is there a reason <figure> is used on line 32 but <div> is used on line 45?

#3779

markdown.render(content)
def convert(content)
@redcarpet_extensions[:fenced_code_blocks] = \
!@redcarpet_extensions[:no_fenced_code_blocks]
Copy link
Member Author

Choose a reason for hiding this comment

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

This would be 99 characters if it was all on one line.

@parkr
Copy link
Member

parkr commented May 26, 2016

Wheeeee another one!!! Thank you!!!

@jekyllbot: merge +dev

@jekyllbot jekyllbot merged commit 8d0a4be into jekyll:master May 26, 2016
jekyllbot added a commit that referenced this pull request May 26, 2016
@pathawks pathawks deleted the converters branch May 26, 2016 17:32
@jekyll jekyll locked and limited conversation to collaborators Jul 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants