Keywords without affiliated keywords should be lower priority than paragraphs with affiliated keywords.
This commit is contained in:
parent
e6e3783ec6
commit
c039e0d62c
@ -219,6 +219,18 @@ fn _element<'b, 'g, 'r, 's>(
|
||||
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
|
||||
ak_element!(
|
||||
keyword,
|
||||
@ -230,16 +242,6 @@ fn _element<'b, 'g, 'r, 's>(
|
||||
);
|
||||
|
||||
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
|
||||
ak_element!(
|
||||
paragraph,
|
||||
|
Loading…
Reference in New Issue
Block a user