Skip to content

Instantly share code, notes, and snippets.

@Florent2
Created April 18, 2016 12:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Florent2/57f7fdde07871fa9b9f6ba2087804b30 to your computer and use it in GitHub Desktop.
Save Florent2/57f7fdde07871fa9b9f6ba2087804b30 to your computer and use it in GitHub Desktop.
Generate second line for GFM tables (https://guides.github.com/features/mastering-markdown/)
puts header_strings.split(" | ").map { |word| "-" * word.size }.join " | "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment