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

updating markdown text handling, isolated text styles [fixes #858 #832] #859

Merged

Conversation

carlfairclough
Copy link
Contributor

Update markdown handling & reduce specificity of markdown styles.

Description

This replaces the way that headings are being handled in markdown, and moves to one layer of css specificity for markdown-generated content. In the current format, text styles are sometimes applied to child elements inside components.

This also means that the existing permalink handling has been replaced (resolving #832) and that the permalink targets have padding (resolving #858)

Related Issue

#832 #858

Copy link
Member

@samajammin samajammin left a comment

Choose a reason for hiding this comment

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

As discussed offline, let's avoid changing the way we generate header IDs & focus this on the issues with markdown css specificity.

}
r.paragraph_open = (tokens, idx, options, env, slf) =>
buildTag(tokens[idx], slf, 'l7 tc-text300')
r.paragraph_close = () => '</p>'
Copy link
Member

Choose a reason for hiding this comment

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

Why do you need to close the paragraph but nothing else?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For some reason , not including the close tag will mean it doesn't render. Super weird little bug, I should probably report it to markdown-it

@samajammin samajammin merged commit 834d418 into ethereum:dev Mar 25, 2020
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