@@ -79,8 +79,23 @@ def parse_functions(self):
79
79
continue
80
80
if 'examples' in type_info :
81
81
function ["has_example" ] = True
82
+ for example in type_info ['examples' ]:
83
+ if 'description' in example :
84
+ example ['description_html' ] = markdown .markdown (example ['description' ])
85
+
82
86
if 'issues' in type_info :
83
87
function ["has_issue" ] = True
88
+ for issue in type_info ['issues' ]:
89
+ issue ['description_html' ] = markdown .markdown (issue ['description' ])
90
+
91
+ type_info ['description_html' ] = markdown .markdown (type_info ['description' ])
92
+
93
+ if ('returns' in type_info ) and ('description' in type_info ['returns' ]):
94
+ type_info ['returns' ]['description_html' ] = markdown .markdown (type_info ['returns' ]['description' ])
95
+
96
+ if 'parameters' in type_info :
97
+ for parameter in type_info ['parameters' ]:
98
+ parameter ['description_html' ] = markdown .markdown (parameter ['description' ])
84
99
85
100
function_name = self .get_function_name (function )
86
101
function ["name" ] = function_name
@@ -227,7 +242,7 @@ def create_article(self, article_name, articles_folder='', custom_web_path=False
227
242
article ['content' ] = content_file .read ()
228
243
229
244
article_template = self .input_env .get_template ('article.html' )
230
- article ["html_content " ] = markdown .markdown (article ['content' ])
245
+ article ["content_html " ] = markdown .markdown (article ['content' ])
231
246
html_content = self .render_page (
232
247
article ['title' ],
233
248
article_template .render (article = article )
0 commit comments