예제 #1
0
    def markdown(self):
        final_contents = [item for item in self.contents if item is not None]
        if final_contents:
            return markdown_string_builders.join_multiple_items(
                list(final_contents))

        return ''
예제 #2
0
    def markdown(self):
        title_text = markdown_string_builders.join_multiple_items(
            self.contents)

        title_text = f'## {title_text}\n'
        outline_list_items_text = self.outline_items.markdown()

        return f"{title_text}{outline_list_items_text}\n\n"
예제 #3
0
 def markdown(self):
     return markdown_string_builders.join_multiple_items(self.contents)
예제 #4
0
 def markdown(self):
     markdown_text = markdown_string_builders.join_multiple_items(
         self.contents)
     return f'{markdown_text}\n'