Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(fluxdoc): adds support for a _soft_ paragraph #4647

Merged
merged 1 commit into from
Apr 6, 2022

Conversation

nathanielc
Copy link
Contributor

@nathanielc nathanielc commented Apr 5, 2022

It is possible for a list item in Markdown to have multiple lines and
also not be a paragraph. I am calling these soft paragraphs, this
change adds support to the parameter parsing to consume these soft
paragraphs as the entire headline.

Done checklist

  • docs/SPEC.md updated
  • Test cases written

@nathanielc nathanielc requested review from a team as code owners April 5, 2022 23:11
@nathanielc nathanielc requested review from Marwes and jstirnaman and removed request for a team April 5, 2022 23:11
@@ -1294,6 +1299,77 @@ mod test {
);
}
#[test]
fn test_value_doc_multiline_headline_no_desc() {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this test passed without changes to the parser, but I wanted to validate that the normal headline didn't have the same problem as the headline for a parameter within a list item.

);
}
#[test]
fn test_value_doc_code_headline_no_desc() {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same thing here, the test passed without changes to the parser, but I wanted to validate that the normal headline didn't have the same problem as the headline for a parameter within a list item.

It is possible for a list item in Markdown to have multiple lines and
also not be a _paragraph_. I am calling these _soft_ paragraphs, this
change adds support to the parameter parsing to consume these _soft_
paragraphs as the entire headline.
@nathanielc nathanielc merged commit 63b2fb9 into master Apr 6, 2022
@jacobmarble jacobmarble deleted the fix/fluxdoc-soft-paragraph branch January 4, 2024 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants