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(markdown): add aria-hidden for line-numbers #731

Merged
merged 1 commit into from Mar 1, 2022

Conversation

Mister-Hope
Copy link
Member

No description provided.

@@ -109,10 +109,10 @@ export const codePlugin: PluginWithOptions<CodePluginOptions> = (
if (useLineNumbers) {
// generate line numbers code
const lineNumbersCode = lines
.map((_, index) => `<span class="line-number">${index + 1}</span><br>`)
.map((_, index) => `<span class="line-number" >${index + 1}</span><br>`)
Copy link
Member

Choose a reason for hiding this comment

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

remove extra space

Copy link
Member Author

Choose a reason for hiding this comment

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

/doge Did not notice that

@meteorlxy meteorlxy merged commit 6f5d132 into main Mar 1, 2022
@Mister-Hope Mister-Hope deleted the markdown-line-number branch March 31, 2022 12:46
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.

None yet

2 participants