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

md code block params not compiled to rst correctly #2728

Open
TheTripleV opened this issue Sep 6, 2024 · 2 comments
Open

md code block params not compiled to rst correctly #2728

TheTripleV opened this issue Sep 6, 2024 · 2 comments
Assignees

Comments

@TheTripleV
Copy link
Member

```Java
:lineno-start: 19
PWMSparkMax armMotorCtrl;

might need a newline there, unsure

@TheTripleV TheTripleV self-assigned this Sep 6, 2024
@sciencewhiz
Copy link
Collaborator

I tried new lines both before and after the :lineno-start: and it didn't help

@sciencewhiz
Copy link
Collaborator

I'm pretty sure the issue is that redown adds two newlines after the code-block. When there's an option for the code block, like the lineno, the second newline shouldn't be added.

ret += btindent + f".. code-block:: {lang}\n\n"

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