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

[Feature Request] Create tag to partially ignore content within a file. #158

Open
ewoolsey opened this issue Aug 7, 2023 · 2 comments
Open

Comments

@ewoolsey
Copy link

ewoolsey commented Aug 7, 2023

I'm a DND dungeon master and often find myself wanting to hide only some information within a file. Here is an example of how it could look.

# Interesting Title

Here is some information I want to be exported.

%% BEGIN-EXPORT-IGNORE %%
Here is some information I want hidden.
%% END-EXPORT-IGNORE %%

Here is some other public info.
@ewoolsey
Copy link
Author

ewoolsey commented Aug 7, 2023

If I could get a green light from the maintainer id be happy to start working on a PR. I imagine this should be pretty simple.

@zoni
Copy link
Owner

zoni commented Aug 9, 2023

In order to accept and incorporate something like this (which I am not at all opposed to in principle), I would prefer to first see generic support for Obsidian's comment syntax, which has been on my wishlist for quite some time, but so far never took the time to try and implement.

Specifically, I would be thinking of two (three?) modes, where either:

  1. Comments are dropped entirely.
  2. Comments are converted to <!-- HTML comments -->
  3. (Comments are left as-is, like now?)

That alone might perhaps even reasonably solve what you're trying to accomplish? If not, after that's supported, I would not mind exploring ways to use comment markers to add more processing logic.

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

No branches or pull requests

2 participants