fix: replace h4 with ** (gitlab) (#1167)

Helps #954
This commit is contained in:
Rhys Arkins 2017-11-14 20:44:32 +01:00 committed by GitHub
parent a19421fff6
commit 59d3be4d1c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -140,8 +140,9 @@ async function ensurePr(prConfig) {
if (config.isGitLab) {
// Convert to HTML using GitHub-flavoured markdown as it is more feature-rich than GitLab's flavour
prBody = converter
.makeHtml(prBody)
.replace('</h4>', ' </h4>') // See #954
.replace(/<\/?h4[^>]*>/g, '**') // See #954
.replace(/Pull Request/g, 'Merge Request')
.replace(/PR/g, 'MR');
} else if (config.isVsts) {

View file

@ -34,7 +34,7 @@ Array [
<h3 id=\\"commits\\">Commits</h3>
<p><details><br />
<summary>renovateapp/dummy</summary></p>
<h4 id=\\"110\\">1.1.0 </h4>
**1.1.0**
<ul>
<li><a href=\\"https://github.com/renovateapp/dummy/commit/abcdefghijklmnopqrstuvwxyz\\"><code>abcdefg</code></a> foo <a href=\\"https://github.com/renovateapp/dummy/issues/3\\">#3</a></li>
</ul>