-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
Multiline codeblocks seen as "superscript" instead of "code" block in confluence #12
Comments
There is a temporary hack to bypass the problem but I am not happy with the results. Remember that only bare code blocks work (without language specification in the first line).
|
@szn A CI job that runs on an unchanged README.md file of me fails now (since using the new version):
Is there any way that I can extract the HTML for debugging? |
Sad to hear that @mxmo0rhuhn. Please install a dev version to see a raw HTML log: $ pip install --upgrade --index-url https://test.pypi.org/simple/ confluence.md==0.4.7.dev1 And run a command with |
Hello, Workinga file like this: # Hello world resulting in a page like this: <p><strong>Automatic content</strong> - Do not edit this page in Confluence.
Page automatically generated from: <code>test.md</code></p><hr />
<h1>Hello world</h1> Not workinga file like this: # Hello world
a file like this should be converted to a confluence page
```markdown
# Hello world
``` resulting in a page like this: <p><strong>Automatic content</strong> - Do not edit this page in Confluence.
Page automatically generated from: <code>test_code.md</code></p><hr />
<h1>Hello world</h1>
<p>a file like this should be converted to a confluence page</p>
<div class="codehilite">
<pre><span></span><code><span class="gh"># Hello world</span>
</code>
</div> which is subsequently not accepted by the confluence API:
At first glance, it looks to me like there is a |
Thanks @mxmo0rhuhn I am not proud of this fix but it seems to work:
I believe I reached the limits of |
Thank you for the super fast fix! There is a special case that does not work now: ```bash
echo "hello, world!"
```
```python
print("hello, world!")
``` resulting in a page like this: <p><strong>Automatic content</strong> - Do not edit this page in Confluence.
Page automatically generated from: <code>test_code.md</code></p><hr />
<div class="codehilite">
<code><span class="nb">echo</span><span class="w"> </span><span class="s2">"Hello, World!"</span>
</code>
</div>
<div class="codehilite">
<pre><span></span><code><span class="nb">print</span><span class="p">(</span><span class="s2">"Hello, World!"</span><span class="p">)</span>
</code>
</div> from a first look it seems like in this setup the regex is not able to match the opening |
Aaaand:
:) |
Yay it works! All files that I tested with were correctly uploaded to Confluence 👍 Thanks a lot for your continued effort! |
Thanks for testing! |
@mxmo0rhuhn $ pip install --upgrade confluence.md |
Pretty much what the title says, I upload a README file with the following content being rendered incorrectly. Inline
code
renders fine.The text was updated successfully, but these errors were encountered: