Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unify Markdown.output_foo methods to include the raw argument #282

Open
mnieber opened this issue Jul 19, 2021 · 0 comments
Open

Unify Markdown.output_foo methods to include the raw argument #282

mnieber opened this issue Jul 19, 2021 · 0 comments

Comments

@mnieber
Copy link

mnieber commented Jul 19, 2021

In my custom mistune.Renderer class I'm using the raw argument that is passed to the header function by Markdown.output_heading (it's the third argument in the call):

def output_heading(self):
    return self.renderer.header(
        self.inline(self.token['text']),
        self.token['level'],
        self.token['text']
    )

However, I also need it in output_paragraph. It would be nice if all the Markdown.output_foo methods pass the same arguments (where possible) when calling the methods of the renderer,

@mnieber mnieber changed the title Unify Markdown.output_foo methods so they all include the raw argument Unify Markdown.output_foo methods to include the raw argument Jul 19, 2021
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

No branches or pull requests

1 participant