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

Styling <code> tag for Markdown content #1123

Merged
merged 1 commit into from
Feb 16, 2021

Conversation

kekkyojin
Copy link
Collaborator

@kekkyojin kekkyojin commented Jan 20, 2021

PR Checklist

Please check all that apply to this PR using "x":

  • I have checked that this PR is not a duplicate of an existing PR (open, closed or merged)
  • I have checked that this PR does not introduce a breaking change
  • This PR introduces breaking changes and I have provided a detailed explanation below

PR Type

What kind of change does this PR introduce?

  • Bugfix

Fixes

Issue Number: #960 -partial fix, don't close-

What is the current behavior?

<code> tag is not rendered like on LBRY Desktop or alternative websites

What is the new behavior?

<code> tag is now rendered like in the desktop app, both in light and dark theme.

Other information

CommonMark offers the possibility of adding attributes to a node. I think this is the way it should be done, instead of embedding the CSS. This way, style is only added when needed. Code to add the style to every tag is only run when required.

@kauffj kauffj requested a review from akinwale February 15, 2021 19:40
@lbry-bot lbry-bot assigned akinwale and unassigned akinwale Feb 15, 2021
@kauffj
Copy link
Member

kauffj commented Feb 15, 2021

I think this was missed. We intend to address PRs promptly. If it's ever longer than 1 week do not hesitate to ping us @kekkyojin.

Copy link
Contributor

@akinwale akinwale left a comment

Choose a reason for hiding this comment

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

Looks good. Thanks.

@lbry-bot lbry-bot assigned akinwale and unassigned akinwale Feb 16, 2021
@akinwale akinwale merged commit f0f0a50 into lbryio:master Feb 16, 2021
@kekkyojin kekkyojin deleted the style-code-tag branch February 16, 2021 16:00
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.

3 participants