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] Offer a way to strip content not meant for publishing #30

Open
niemeyer opened this issue Jan 11, 2023 · 2 comments
Open

Comments

@niemeyer
Copy link

niemeyer commented Jan 11, 2023

That's a super nice service, thanks for working on it. I have a relatively simple feature request, which I might eventually work on if you don't get to it first:

It would be nice if we could strip some content off the note before publishing. Some of the details of the note are meant for cross linking with other notes which are not going to be available. None of it is a secret, but it's not relevant to any of the readers either.

There are a number of ways to implement it, but we could just offer, for example, a setting that takes a regular expressions for where to start the note. Or maybe a list of regular expressions to be filtered / stripped.

In either case, the goal is just to have some way to polish the output without having to compromise the internal organization.

Thanks for considering it.

@niemeyer niemeyer changed the title [Feature request] [Feature request] Offer a way to strip content not meant for publishing Jan 11, 2023
@mcndt
Copy link
Owner

mcndt commented Jan 15, 2023

Hi @niemeyer!

Interesting idea! I can see how some parts of notes are not interesting to share with others, e.g. Dataview queries intended for personal navigation.

I'm not exactly sure how to best implement this though. With regexes, we could perhaps add a special code comment sequence that starts/stops including text into the shared output. If we put it inside of the existing Markdown comment syntax (%%), it won't be rendered in reading mode either. So for example:

This text will be included.

%%quickshare-ignore-start%%
This won't be included
%%quickshare-ignore-end%%

This text will also be included.

@1nsp1r3rnzt
Copy link

I liked this idea a lot to skip parts of notes using special code comment. I think it can help to skip personal part of a note and still share the note with others.

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

3 participants