8b7df2d915
Previously Emph, Strong, etc were outside the custom-style span. This moves them inside in order to make it easier to write filters that act on the formatting in these contents. Tests and MANUAL example are changed to match.
7 lines
819 B
Text
7 lines
819 B
Text
[Div ("",[],[("custom-style","FirstParagraph")])
|
|
[Para [Str "This",Space,Str "is",Space,Str "some",Space,Str "text."]]
|
|
,Div ("",[],[("custom-style","BodyText")])
|
|
[Para [Str "This",Space,Str "is",Space,Str "text",Space,Str "with",Space,Str "an",Space,Span ("",[],[("custom-style","Emphatic")]) [Emph [Str "emphasized"]],Space,Str "text",Space,Str "style.",Space,Str "And",Space,Str "this",Space,Str "is",Space,Str "text",Space,Str "with",Space,Str "a",Space,Span ("",[],[("custom-style","Strengthened")]) [Strong [Str "strengthened"]],Space,Str "text",Space,Str "style."]]
|
|
,Div ("",[],[("custom-style","MyBlockStyle")])
|
|
[BlockQuote
|
|
[Para [Str "Here",Space,Str "is",Space,Str "a",Space,Str "styled",Space,Str "paragraph",Space,Str "that",Space,Str "inherits",Space,Str "from",Space,Str "Block",Space,Str "Text."]]]]
|