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 importer does not handle mermaid/latex blocks #1927

Open
3 tasks done
CGamesPlay opened this issue Dec 10, 2024 · 0 comments
Open
3 tasks done

Markdown importer does not handle mermaid/latex blocks #1927

CGamesPlay opened this issue Dec 10, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@CGamesPlay
Copy link

Have you read a contributing guide?

  • I have read CONTRIBUTING.md
  • I have searched the existing issues and didn't find any that were similar
  • I have considered creating a pull request with fixes instead of a bug report and want to proceed

Current Behavior

The Markdown importer was able to successfully process most of my medium-size note collection from Obsidian, including tables, tasks, and images. I encountered a variety of minor problems that I was able to resolve by renaming files, reformatting links, and flattening my directory hierarchy. The last two missing pieces are mermaid diagrams and latex blocks.

Import the following document into AnyType:

Mermaid diagram:

```mermaid
graph TD
    A --> B
```

Latex block:

$$
\frac{\text{base distance}}{\text{vehicle speed} * \text{network upgrades}}
$$

Expected Behavior

Since both Mermaid embeds and Latex blocks are supported by AnyType, I would expect them to be imported as such. However, the mermaid block is imported as a regular code block and the latex block is imported as regular text.

Steps To Reproduce

Just save the markdown snippet to a file and use "Import to Space" to reproduce.

Environment

- OS: macOS 14.7.1 (23H222)
- Version: 0.43.28-alpha

Anything else?

No response

@CGamesPlay CGamesPlay added the bug Something isn't working label Dec 10, 2024
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