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

Support markdown syntax highlighting inside comment blocks #30

Open
linuxcaffe opened this issue Nov 29, 2015 · 4 comments
Open

Support markdown syntax highlighting inside comment blocks #30

linuxcaffe opened this issue Nov 29, 2015 · 4 comments

Comments

@linuxcaffe
Copy link

This would ideally be optional, as not everyone uses markdown, and I'm pretty sure there are markdown elements that would conflict with the *ledger format, but would it be possible to also associate the *.ledger filtetype with markdown?

Where a subset of markdown elements, that match *ledger comments characters, it would be great for folding (like #19) and enhanced comments/ notes etc,

Headers

  • bullet
  • lists

and maybe much more, if it can fly under the *ledger-comment-character radar.

@alerque
Copy link
Member

alerque commented Jun 11, 2019

Do you mean having Markdown syntax inside Ledger comments, or trying to pretend Ledger journals are parseable as Markdown?

@alerque
Copy link
Member

alerque commented Jul 1, 2019

Does ledger support comment block syntax like hledger does? Implementing that with syntax embedded highlighting such as can be done with code blocks might be a possibility for this.

I've recently stepped in to help maintain this plugin. I'm open to seeing a contribution for this if somebody wants to implement it, bit will likely not be doing it myself as I don't have a need for it (yet).

@alerque
Copy link
Member

alerque commented Jul 1, 2019

Given the link and explicit support as detailed in #54 I think the answer to my question is "yes".

@alerque alerque changed the title markdown support Support markdown syntax highlighting inside comment blocks Oct 26, 2019
@alerque
Copy link
Member

alerque commented Oct 26, 2019

For anybody interested in contributing this, see similar problems faced for example here in nerdcommenter with embedded languages. This proposal is a lot simpler than any arbitrary language in any other, and there are ways of doing this. The plugins mentioned there than do this might be a place to start.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants