Skip to content
This repository was archived by the owner on Jan 16, 2022. It is now read-only.

feat: allow deep links on readme pages#557

Merged
juanpicado merged 1 commit intoverdaccio:masterfrom
mknj:master
Oct 16, 2020
Merged

feat: allow deep links on readme pages#557
juanpicado merged 1 commit intoverdaccio:masterfrom
mknj:master

Conversation

@mknj
Copy link
Copy Markdown
Contributor

@mknj mknj commented Sep 27, 2020

feature

allow deep (aka anchor,i.e. #usage) links in the markdown of readme pages.

The following has been addressed in the PR:

Description:

The underlying markdown Parser already provides header ids in the generated html code for the readme files. Unfortunately these ids are filtered by the xss module. This PR adds a onIgnoreTagAttr helper for h1, h2, ..., h9 ids so that TOC navigation and direct links to paragraphs (i.e. http://localhost:4872/-/web/detail/jquery#including-jquery ) work.

@sonarqubecloud
Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@codecov
Copy link
Copy Markdown

codecov bot commented Sep 27, 2020

Codecov Report

Merging #557 into master will decrease coverage by 0.11%.
The diff coverage is 50.00%.

@@            Coverage Diff             @@
##           master     #557      +/-   ##
==========================================
- Coverage   79.93%   79.82%   -0.12%     
==========================================
  Files         164      164              
  Lines        1261     1264       +3     
  Branches      240      241       +1     
==========================================
+ Hits         1008     1009       +1     
- Misses        215      217       +2     
  Partials       38       38              
Impacted Files Coverage Δ
src/utils/sec-utils.ts 60.00% <50.00%> (-40.00%) ⬇️

@juanpicado juanpicado self-requested a review October 8, 2020 08:59
Copy link
Copy Markdown
Member

@juanpicado juanpicado left a comment

Choose a reason for hiding this comment

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

I verified and this works fine 👍

@juanpicado juanpicado added enhancement New feature or request hacktoberfest 🎃 hacktoberfest-accepted Accept for Hacktoberfest - will merge later labels Oct 16, 2020
@juanpicado juanpicado merged commit e3d547a into verdaccio:master Oct 16, 2020
@juanpicado
Copy link
Copy Markdown
Member

Thanks @mknj . Great stuff.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request hacktoberfest 🎃 hacktoberfest-accepted Accept for Hacktoberfest - will merge later

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants