Skip to content

Conversation

@dpshelio
Copy link
Member

Only the code snippets changes from #95 (by @Abinash-bit)

stripped_html = s.get_data()

# Handle <pre> and <code> tags manually for code snippets
stripped_html = stripped_html.replace('<pre>', '\n.. code-block:: python\n\n ')
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It won't always be Python code. There are others using julia, c, ...

Also, wouldn't need to indent all the lines to the same column to work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants