Keywords without affiliated keywords should be lower priority than paragraphs with affiliated keywords.

This commit is contained in:
Tom Alexander 2023-10-12 17:32:29 -04:00
parent e6e3783ec6
commit c039e0d62c
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -219,6 +219,18 @@ fn _element<'b, 'g, 'r, 's>(
Element::Keyword Element::Keyword
); );
if can_be_paragraph {
// Paragraph with affiliated keyword
ak_element!(
paragraph,
&mut affiliated_keywords,
post_affiliated_keywords_input,
context,
input,
Element::Paragraph
);
}
// Keyword without affiliated keywords // Keyword without affiliated keywords
ak_element!( ak_element!(
keyword, keyword,
@ -230,16 +242,6 @@ fn _element<'b, 'g, 'r, 's>(
); );
if can_be_paragraph { if can_be_paragraph {
// Paragraph with affiliated keyword
ak_element!(
paragraph,
&mut affiliated_keywords,
post_affiliated_keywords_input,
context,
input,
Element::Paragraph
);
// Paragraph without affiliated keyword // Paragraph without affiliated keyword
ak_element!( ak_element!(
paragraph, paragraph,