Skip to content

Commit

Permalink
gap-analysis-github, bugfix: convertcode > convertbold
Browse files Browse the repository at this point in the history
  • Loading branch information
r12a committed Jan 26, 2021
1 parent c5cbdbd commit 044b68e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions textlayout/resources/gap-analysis-github.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,13 @@ function buildSection (theData, sectionId, doc, repo) {
body = body.replace(test, convertcode)

// create convert bold segments links
function convertcode(str, p1, s) {
function convertbold(str, p1, s) {
p1 = p1.replace(/\*\*/g,'')
p1 = p1.replace(/\*\*/g,'')
return '<strong>'+p1+'</strong>'
}
test = /\*\*([^\*]+)\*\*/g
body = body.replace(test, convertcode)
body = body.replace(test, convertbold)

// convert unordered lists to markup
function convertlists(str, initial, startMarkup, endMarkup) {
Expand Down

0 comments on commit 044b68e

Please sign in to comment.