Skip to content

Instantly share code, notes, and snippets.

@pbrisbin
pbrisbin / example.md
Last active April 23, 2020 10:54 — forked from ericclemmons/example.md
HTML5 <details> in GitHub

Using <details> in GitHub

Suppose you're opening an issue and there's a lot noisey logs that may be useful.

Rather than wrecking readability, wrap it in a <details> tag!

<details>
 <summary>Summary Goes Here</summary>
require "spec_helper"
describe "Proprietors sign in", focus: true do
it "allows proprietors to sign in after they have registered" do
user = create_user
visit proprietor_login_path
fill_in "Email", :with => user.email
fill_in "Password", :with => "secret"
click_button "Sign In"