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

Support inline code #44

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Support inline code #44

wants to merge 3 commits into from

Conversation

rachkor
Copy link
Member

@rachkor rachkor commented Mar 10, 2023

Summary

This PR adds support for inline code

Copyright assignment

I assign all rights, including copyright, to any future Dradis work by myself to Security Roots.

@@ -147,6 +147,9 @@ def cleanup_html(source)

result.gsub!(/<a .*?href=(?:\"|\')(.*?)(?:\"|\').*?>(?:<i.*?<\/i>)?(.*?)<\/a>/i) { "\"#{$2.strip}\":#{$1.strip}" }

result.gsub!(/<code>(.*?)<\/code>/) { "@#{$1}@" }
result.gsub!(/<pre.*?>(.*?)<\/pre>\n/) { "\n\nbc. #{$1}\n\n" }
Copy link
Contributor

Choose a reason for hiding this comment

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

Line 154 already catches the <pre> tag. Instead of adding this one I'm thinking Line 154 should be updated instead to accommodate this change

Copy link
Member Author

Choose a reason for hiding this comment

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

Good catch, thanks @aapomm ! I tested and confirmed that we can remove that line entirely and pushed the updated version.

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