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

Markdown code block description issue #1141

Closed
yannan opened this issue Dec 13, 2019 · 1 comment
Closed

Markdown code block description issue #1141

yannan opened this issue Dec 13, 2019 · 1 comment

Comments

@yannan
Copy link
Contributor

yannan commented Dec 13, 2019

I want to creating a code block using markdown in the description field.
Everything is working fine util I use python comment character "#".

Example:

openapi: 3.0.2
info:
    title: test
    version: 1.0
    description: |
      # python example
      ```python
      # -*- coding: UTF-8 -*-
      import hmac
      import hashlib
      import json
      ```

The result of render is:
TIM图片20191213165950
the block is empty...

As the result of render in editor.swagger.io is:
TIM图片20191213165705

I think the "#" character in code block may be handled as a heading.

@RomanHotsiy
Copy link
Member

Duplicate of #1116

Will be fixed in the new release (coming today)

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

2 participants