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

Identify and skip unrenderable snoomark syntaxes #81

Closed
wants to merge 2 commits into from

Conversation

zeantsoi
Copy link

👓 @spladug @JordanMilne

Per JIRA CREATE-518:

The new rich-text editor enables two additional inline styles: underline and subscript. We've extended our CommonMark parser with the following corresponding syntaxes:

  • ~underline~
  • %(subscript)
  • %subscript%subscript

snudown does not provide for either of the two styles. Therefore, in order to preserve compatibility of new content with old clients, we should strip these styles when rendering via snudown.

This PR is mostly copy/paste of existing functionality. It passes the additional tests against the new syntaxes.

Note: in the case of underline, we can alternatively wrap content in <u> tags. I haven't elected to do that here as I'm not sure whether we want to begin rendering out a style we've never supported historically, but it's certainly something that can be added very easily.

@spladug
Copy link
Contributor

spladug commented Sep 19, 2017

🏃 unfortunately I'm not going to have time to review this before being out of town this week. Please feel free to re-eyeglass me if it's still open next week; otherwise, there are definitely people in #infra that can review C in addition to Jordan's astute eyes.

@zeantsoi
Copy link
Author

zeantsoi commented May 1, 2018

Per discussion with @wangwh03, let's not focus on this since we've nearly ramped to 100% redesign enrollment.

@zeantsoi zeantsoi closed this May 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants