Obsidian-Code-Styler icon indicating copy to clipboard operation
Obsidian-Code-Styler copied to clipboard

Feature Request: Hope it can be compatible with code emitter plugin

Open SprInec opened this issue 1 year ago • 4 comments

Hellos, thank you very much for your open source code style project🤩. As a person who needs to insert a lot of code in a document and is dissatisfied with the original style, I can no longer do without code style. However, when using another plugin code emitter, I found a style overlay problem. Here is the following request:

Summarys

Hope it can be compatible with code emitter plugin. The following is the project address of the code emitter plugin: https://github.com/mokeyish/obsidian-code-emitter

Basic example

Similar to compatibility with Execute code

Motivation

Execute code requires complex compiler installation and path configuration, while Code emitter does not require environment configuration and can be used directly, which is very convenient.

However, the code block style of code style does not work under the coverage of code emitter. I want to know whether code style can be compatible with code emitter plug-in in the future.

Existing Requests?

None

SprInec avatar Dec 09 '24 09:12 SprInec

I'll try and do some testing but what's an overview of the style overlay issue?

mayurankv avatar Jan 28 '25 23:01 mayurankv

I just ran into this problem myself so I can provide some context. With only Code Styler enabled everything renders like you'd expect.

Image

When Code Emitter is enabled code blocks render like this.

Image

Upon a cursory glance it seems that Code Emitter is replacing the code block element rather than adding it's content to the existing element, but admittedly I'm not much of a typescript person so I may have read it wrong.

techgeek1 avatar Feb 18 '25 08:02 techgeek1

Is there any console errors. I'm likely to release the refactor without this as there's a number of more urgent bugs that need to be fixed (trying to achieve feature parity). But this will be worked on. Any information will hopefully make this a quick and easy process!

mayurankv avatar Feb 19 '25 08:02 mayurankv

There's no console errors from either plugin it seems. The only logs I get are from plugin load/unload.

techgeek1 avatar Feb 19 '25 20:02 techgeek1