ytliu74 / obsidian-pseudocode

An obsidian plugin that helps to render a LaTeX-style pseudocode inside a code block.
MIT License
84 stars 4 forks source link

\begin{algorithmic}[1] not working #21

Closed mii-key closed 4 months ago

mii-key commented 4 months ago

Hi, @ytliu74

First off, I want to say a huge thanks for creating and maintaining the plugin. I truly appreciate all the effort you've put into it.

I've come across a small hiccup with the \begin{algorithmic}[1] command not working as intended. I noticed there's an option to enable line numbers globally, but it would be super helpful to have the ability to toggle line numbers on a per-algorithm basis with \begin{algorithmic}[1].

STR: using \begin{algorithmic}[1] instead of \begin{algorithmic} in the example from your docs produce:

Obsidian_l5gHCYHPSY Windows 11x64, Obsidian 1.6.3, Pseudocode 1.6.0

Would it be possible to consider adding support for this in a future update? It would offer a great deal of flexibility for those of us who need to customize our documentation further.

Thanks again for your awesome work on this plugin.

ytliu74 commented 4 months ago

Hi mii-key, I appreciate your support for this plugin.

The feature you're referring to is associated with pseudocode.js, which renders the pseudocode. Unfortunately, I can't assist directly with this. However, you could open an issue on pseudocode.js and once they update it with the new feature, I'll merge it into my version of pseudocode.js.