Skip to content

Conversation

pavelfeldman
Copy link
Member

No description provided.

match = re.match(r"\s*```(.+)", line)
if match:
lang = match[1]
if lang in ["html", "yml", "sh", "py", "python"]:
Copy link
Member

@mxschmitt mxschmitt Jan 13, 2021

Choose a reason for hiding this comment

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

For the long-term it would be better to move that upstream I think, so each method has language specific examples attached. We loose then the location and have to put them at the end of a method description but should be fine.
Better than each language has to implement this in my opinion.

@pavelfeldman pavelfeldman merged commit 39374d0 into microsoft:master Jan 14, 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

Successfully merging this pull request may close these issues.

3 participants