Change lesser block exit class to Alpha.
When an example block is nested inside a list, this change allows for the contents of the example block to be on lines less indented than before.
This commit is contained in:
parent
728a79f9a4
commit
84edd10864
@ -46,7 +46,7 @@ pub fn verse_block<'b, 'g, 'r, 's>(
|
||||
ContextElement::ConsumeTrailingWhitespace(true),
|
||||
ContextElement::Context("lesser block"),
|
||||
ContextElement::ExitMatcherNode(ExitMatcherNode {
|
||||
class: ExitClass::Beta,
|
||||
class: ExitClass::Alpha,
|
||||
exit_matcher: &lesser_block_end_specialized,
|
||||
}),
|
||||
];
|
||||
@ -101,7 +101,7 @@ pub fn comment_block<'b, 'g, 'r, 's>(
|
||||
ContextElement::ConsumeTrailingWhitespace(true),
|
||||
ContextElement::Context("lesser block"),
|
||||
ContextElement::ExitMatcherNode(ExitMatcherNode {
|
||||
class: ExitClass::Beta,
|
||||
class: ExitClass::Alpha,
|
||||
exit_matcher: &lesser_block_end_specialized,
|
||||
}),
|
||||
];
|
||||
@ -141,7 +141,7 @@ pub fn example_block<'b, 'g, 'r, 's>(
|
||||
ContextElement::ConsumeTrailingWhitespace(true),
|
||||
ContextElement::Context("lesser block"),
|
||||
ContextElement::ExitMatcherNode(ExitMatcherNode {
|
||||
class: ExitClass::Beta,
|
||||
class: ExitClass::Alpha,
|
||||
exit_matcher: &lesser_block_end_specialized,
|
||||
}),
|
||||
];
|
||||
@ -182,7 +182,7 @@ pub fn export_block<'b, 'g, 'r, 's>(
|
||||
ContextElement::ConsumeTrailingWhitespace(true),
|
||||
ContextElement::Context("lesser block"),
|
||||
ContextElement::ExitMatcherNode(ExitMatcherNode {
|
||||
class: ExitClass::Beta,
|
||||
class: ExitClass::Alpha,
|
||||
exit_matcher: &lesser_block_end_specialized,
|
||||
}),
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user