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

Introduce negation filters #59

Closed
kellertuer opened this issue May 6, 2019 · 2 comments
Closed

Introduce negation filters #59

kellertuer opened this issue May 6, 2019 · 2 comments

Comments

@kellertuer
Copy link

Would it be possible to have negative filters as well?
For example If I write some code, that I want to use in a Documenter.jl documentation, I could want to enhance keywords to be linked to the corresponding page, for example when speaking about my own Type MyType. In the code for Literate.jl. For both other cases (notebook and plain Julia) I don't want to clutter the notebook/example.

So for example I would write

#md # Now let's use [`MyType`](@ref)
#nb # Not let's use MyType
#jl # Now let's use MyType

but it would be shorter to write for example

#md # Now let's use [`MyType`](@ref)
#!md # Not let's use MyType

to say that the first line should be used in markdown and the second for all other types of renderings.

Of course for this example one could argue that the notebook might want to have just a marked up MyType so that we still need three versions, but then the example would just not fit my feature request ;)

Besides that: The idea of the package is quite nice, thanks for providing it :)

@fredrikekre
Copy link
Owner

For the particular case of @refs, Literate will remove them by default, see https://fredrikekre.github.io/Literate.jl/stable/documenter/ but maybe #!md etc might be useful too.

@kellertuer
Copy link
Author

Ah, I did not see, that they are removed for scripts, that's nice and avoids the double text I had for now;
but actually my main point was to illustrate an #!md

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