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

Callouts and fonts are not rendered correctly #5

Open
Marin-Kitagawa opened this issue Sep 10, 2023 · 3 comments
Open

Callouts and fonts are not rendered correctly #5

Marin-Kitagawa opened this issue Sep 10, 2023 · 3 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@Marin-Kitagawa
Copy link

Marin-Kitagawa commented Sep 10, 2023

Issue 1: Callouts

This is a great plugin. I love it. The issue here is that the callouts are not rendered correctly.

MDX Preview:

image

Live preview in Obsidian

image

Issue 2: Fonts

This is my font setup
image

While previewing in MDX Preview I get the interface font in the display while it must have been displayed in the Text font

image

I get the correct font in Obsidian live preview

image

@Marin-Kitagawa Marin-Kitagawa changed the title Callouts not rendered correctly Callouts and fonts are not rendered correctly Sep 10, 2023
@Marin-Kitagawa
Copy link
Author

Marin-Kitagawa commented Sep 10, 2023

I was able to fix the second issue (temporarily) with the below CSS appended to styles.css file

#text,
p,
li {
    font-family: Optima !important;
}

But I doubt if it covers everything

@yuleicul yuleicul added the bug Something isn't working label Sep 12, 2023
@Marin-Kitagawa
Copy link
Author

Also, just now noticed that it is not only for callouts but for backlinks and some other native Obsidian objects.

As you can see below, the backlinks are not rendered properly as well

image

@yuleicul
Copy link
Owner

yuleicul commented Sep 14, 2023

Hi @Marin-Kitagawa, thanks for your contribution 😃
At least for now, I don't have the plan to make MDX preview plugin support Obsidian syntax.
The basic function of this plugin is the same as https://mdxjs.com/playground/

The long-term goal is to implement a live editor for MDX, where the Obsidian syntax might be supported.

@yuleicul yuleicul added the enhancement New feature or request label Sep 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants