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

wikilinks should be ignored in code blocks #190

Closed
rvalien opened this issue Jan 24, 2025 · 3 comments
Closed

wikilinks should be ignored in code blocks #190

rvalien opened this issue Jan 24, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@rvalien
Copy link

rvalien commented Jan 24, 2025

how to reproduce:
add code section

```python
import pandas as pd

df = pd.read_pickle('cars.pickle')
brands = df[['brand_name', "brand_code"]]
```

result:
Image

@redimp redimp added the bug Something isn't working label Jan 24, 2025
@redimp redimp changed the title markdown links work in code section wikilinks should be ignored in code blocks Jan 24, 2025
@redimp
Copy link
Owner

redimp commented Jan 24, 2025

Confirmed. No so nice workaround: Without the lang tag it works:

```
import pandas as pd

df = pd.read_pickle('cars.pickle')
brands = df[['brand_name', "brand_code"]]
```

Image

@redimp
Copy link
Owner

redimp commented Jan 24, 2025

Digging into this .. it's not the wikilink .. its something else. Better workaround, use double quotes:

```python=
import pandas as pd

df = pd.read_pickle('cars.pickle')
brands = df[["brand_name", "brand_code"]]
```

Image

redimp added a commit that referenced this issue Jan 26, 2025
@redimp redimp closed this as completed in 666cfd0 Jan 26, 2025
@redimp
Copy link
Owner

redimp commented Jan 26, 2025

Released in v2.9.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants