Update release notes formatting
Fixes: https://github.com/brave/brave-browser/issues/7502
This commit is contained in:
+1
-12
@@ -27,7 +27,7 @@ def render_markdown(changelog_txt, version, logging):
|
||||
version_changes = output['children'][pos+1]
|
||||
pos = pos + 1
|
||||
if version_heading and version_changes:
|
||||
heading = reconstruct_heading(version_heading)
|
||||
heading = '# Release Notes'
|
||||
s = heading + '\n'
|
||||
s = s + '\n'
|
||||
changes = reconstruct_brave_changelog_list(version_changes)
|
||||
@@ -49,17 +49,6 @@ def render_html(changelog_txt, version, logging):
|
||||
return rendered
|
||||
|
||||
|
||||
def reconstruct_heading(heading):
|
||||
"""
|
||||
heading is a dict
|
||||
"""
|
||||
|
||||
if heading['type'] is "Heading":
|
||||
return ("{} [{}]({})".format('#'*heading['level'],
|
||||
heading['children'][0]['children'][0]['content'],
|
||||
heading['children'][0]['target']))
|
||||
|
||||
|
||||
def reconstruct_brave_changelog_list(li):
|
||||
"""
|
||||
li is a list
|
||||
|
||||
Reference in New Issue
Block a user