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

Code block does not work well when 'code highlight support' setting is turned off #207

Open
jjerryyz opened this issue Nov 15, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@jjerryyz
Copy link

jjerryyz commented Nov 15, 2023

flashcards version: 1.6.5

Describe the bug
Code block does not work well when 'code highlight support' setting is turned off

To Reproduce
use the markdown below to reproduce the problem

Expected behavior
code block should be work without code highlight support feature

Screenshots
no

Markdown used

# Code Block Test 
#card
```
this is a test cmd
```
or this
`test`
@jjerryyz jjerryyz added the bug Something isn't working label Nov 15, 2023
Copy link

Thank you for taking the time to report the issue and help me to make the project better! 🙂

@jjerryyz
Copy link
Author

i catch the anki connect log

[request]
{
    "action": "addNotes",
    "params": {
        "notes": [
            {
                "deckName": "",
                "fields": { ... },
                "modelName": "Obsidian-basic-code",
                "tags": [
                    "obsidian"
                ]
            }
        ]
    },
    "version": 6
}

it seems that addNotes request uses the Obsidian-basic-code model, but the corresponding model were not found in the createModel request

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

1 participant