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

#198 - Markdown specification (part 1 of 2) #209

Merged
merged 5 commits into from
Feb 24, 2025
Merged

Conversation

kalbfled
Copy link
Member

@kalbfled kalbfled commented Feb 20, 2025

Description

These changes add test markdown templates that should serve as a comprehensive specification for how the Notify app should convert markdown entered into Portal into HTML or plain text.

The expected HTML intentionally does not include any inline styling, which departs from the current implementation. The intent is that a future implementation will apply all CSS through Jinja templates rather than using custom Mistune to add inline styles.

These changes do not include any markdown templates with placeholders. They will be added as necessary for #199.

These changes do not include any unit tests or implementation.

issue #198

How Has This Been Tested?

  • Reviewed with Strike and QA to ensure all relevant test cases (other than placeholders) are covered

Checklist

  • I have assigned myself to this PR
  • PR has an appropriate title: #9999 - What the thing does
  • PR has a detailed description, including links to specific documentation
  • I have added the appropriate labels to the PR.
  • I did not remove any parts of the template, such as checkboxes even if they are not used
  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to any documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works. Testing guidelines
  • I have ensured the latest main is merged into my branch and all checks are green prior to review
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules
  • The ticket was moved into the DEV test column when I began testing this change

@kalbfled kalbfled self-assigned this Feb 20, 2025
@kalbfled kalbfled marked this pull request as ready for review February 24, 2025 19:50
@MackHalliday MackHalliday changed the title #198 Markdown specification (part 1 of 2) #198 - Markdown specification (part 1 of 2) Feb 24, 2025
<h2>Inline images</h2>
<h2>Reference images</h2>
<p>The reference is immediately after the image.</p>
<p>The reference is not immediately after the iamge.</p>

Choose a reason for hiding this comment

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

typo in image

text before ![alt text][image4] text after
[image4]: https://www.example.com/test.png "title text"

The reference is not immediately after the iamge.

Choose a reason for hiding this comment

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

typo in image


The reference is immediately after the image.

The reference is not immediately after the iamge.

Choose a reason for hiding this comment

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

typo in image

<li>item F</li>
</ul>
</li>
<li>item 3<ul>

Choose a reason for hiding this comment

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

this should be item 4

@@ -0,0 +1,4 @@
<p>Colons can be used to align columns.</p>

Choose a reason for hiding this comment

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

Do you want text in here indicating that tables will be stripped from html?

Copy link
Member Author

Choose a reason for hiding this comment

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

Not here. I documented that in the index file. The input markdown reflected here is copied directly from here.

Choose a reason for hiding this comment

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

I just mean to write some text in here like you did for the images.html that says the table is going to be stripped. I found it confusing to read the text that is here and to not see any tables, but I will defer to your judgement.

@@ -0,0 +1,5 @@
Colons can be used to align columns.

Choose a reason for hiding this comment

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

do you want text in here indicating that tables will be stripped from plain text?

Copy link
Member Author

Choose a reason for hiding this comment

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

Not here. I documented that in the index file. The input markdown reflected here is copied directly from here.

Comment on lines +24 to +25
6. item 3
6. item 4

Choose a reason for hiding this comment

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

did you mean for these to both be 6? they aren't in the html above?

Copy link
Member Author

Choose a reason for hiding this comment

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

That's intentional. Markdown just requires digits to denote an ordered list. They don't need to be unique or in order.

Choose a reason for hiding this comment

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

Can you note that somewhere so that someone doesn't come along later and 'fix' it?

Copy link

@ChrisJohnson-CDJ ChrisJohnson-CDJ left a comment

Choose a reason for hiding this comment

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

A couple additional typos


## Unsupported markdown

VA Notify markdown is not gauranteed to support:

Choose a reason for hiding this comment

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

guaranteed


## Supported markdown

VA Notify markdown support mostly aligns with [Github markdown](https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet). Some addtionally supported markdown includes:

Choose a reason for hiding this comment

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

additionally

Copy link

@MackHalliday MackHalliday left a comment

Choose a reason for hiding this comment

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

🚀 !!

Copy link

@cris-oddball cris-oddball left a comment

Choose a reason for hiding this comment

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

approved with comments. i fear that anyone working any part of this who is not you will not be able to get up to speed on what is happening here.

@kalbfled kalbfled merged commit cee8549 into main Feb 24, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants