Skip to content

Commit

Permalink
Add intentionally broken example for underlines
Browse files Browse the repository at this point in the history
  • Loading branch information
tesk9 committed Jan 12, 2024
1 parent 1a1af8b commit 0a1b5bb
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions component-catalog/src/Examples/Block.elm
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,39 @@ A labelled blank in the sentence.
]
]
}
, { pattern =
Code.fromModule moduleName "view "
++ Code.listMultiline
[ Code.fromModule moduleName "emphasize"
, Code.fromModule moduleName "underline"
, Code.fromModule moduleName "content "
++ Code.listMultiline
[ "…"
, Code.fromModule moduleName "blank "
++ Code.record [ ( "widthInChars", "8" ) ]
, "…"
]
2
]
1
, description = "**Underline Blanks in emphasis block**\n\nHelp students focus in on a phrase that includes a blank"
, example =
inParagraph
[ Block.view [ Block.plaintext "This is an " ]
, Block.view
[ Block.emphasize
, Block.underline
, (List.concat >> Block.content)
[ Block.phrase "emphasized subsegement "
, [ Block.blank { widthInChars = 8 } ]
, Block.phrase " emphasized"
]
]
, Block.view
[ Block.plaintext " in a seed."
]
]
}
, { pattern =
Code.fromModule moduleName "view "
++ Code.listMultiline
Expand Down

0 comments on commit 0a1b5bb

Please sign in to comment.