-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
rest2html: Add support for highlight directive #925
Conversation
Ping. |
Hello? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
checo
lib/github/commands/rest2html
Outdated
else: | ||
self.body.append(self.starttag(node, 'pre')) | ||
|
||
def visit_highlight(self, node): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have no idea about rST, so forgive me if I'm missing the mark, but should this definition be here? It looks like we don't output to stdout at any other time except when returning from main()
.
lib/github/commands/rest2html
Outdated
else: | ||
self.body.append(self.starttag(node, 'pre')) | ||
|
||
def visit_highlight(self, node): |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This adds support for the `highlight` directive, a Sphinx feature which allows one to set the default syntax highlighting language used for code blocks.
Fixed. |
LGTM! |
This adds support for the
highlight
directive, a Sphinx feature whichallows one to set the default syntax highlighting language used for code
blocks.
This fixes #924.