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

Wrong render result when setting syntax highlight language to C# #279

Closed
chengyin opened this issue Sep 18, 2019 · 1 comment
Closed

Wrong render result when setting syntax highlight language to C# #279

chengyin opened this issue Sep 18, 2019 · 1 comment
Assignees

Comments

@chengyin
Copy link

Using C# as the syntax highlight language will lead to wrong render result.

markdown = """
  ```C#
  var optional = Some(123);
  ```
  """

Earmark.as_html!(markdown)

Will produce inline code with C# in content:
<p><code class="inline">C# var optional = Some(123);</code></p>

In GitHub it renders correctly:

var optional = Some(123);
@RobertDober
Copy link
Collaborator

Well you should not use C#...

just kidding. Thank you for this I will try to fix this soon, hopefully low hanging fruit.

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

No branches or pull requests

2 participants