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

How to type in "@" symbol in Intellij IDEA #65

Open
greenlaw110 opened this issue Jul 11, 2016 · 2 comments
Open

How to type in "@" symbol in Intellij IDEA #65

greenlaw110 opened this issue Jul 11, 2016 · 2 comments

Comments

@greenlaw110
Copy link

greenlaw110 commented Jul 11, 2016

The following code doesn't work:

/**
 * ```java
 * public class FilterConsumer {
 *     private List<Filter> filters;
 *     @Inject
 *     public class FilterConsumer(List<Filter> filters) {
 *         this.filters = filters;
 *     }
 * }
 * ```
 */

It gives out:
image

Neither this works:

/**
 * ```java
 * public class FilterConsumer {
 *     private List<Filter> filters;
 *     &#64;Inject
 *     public class FilterConsumer(List<Filter> filters) {
 *         this.filters = filters;
 *     }
 * }
 * ```
 */

It produces:
image

Or this way:

/**
 * ```java
 * public class FilterConsumer {
 *     private List<Filter> filters;
 *     {@literal@}Inject
 *     public class FilterConsumer(List<Filter> filters) {
 *         this.filters = filters;
 *     }
 * }
 * ```
 */

Which omit the @ in the rendered result:
image

@greenlaw110
Copy link
Author

In the end I have to fall back to normal JavaDoc:

/**
 * <pre><code>
 * public class FilterConsumer {
 *     private List&lt;Filter&gt; filters;
 *     &#64;Inject
 *     public class FilterConsumer(List&lt;Filter&gt; filters) {
 *         this.filters = filters;
 *     }
 * }
 * </code></pre>
 */

Which produce the result I needed:

image

@loddar
Copy link
Contributor

loddar commented Jul 12, 2016

The problem is that markdown handles &#64; different when it's part of a (markdown) code block. Outside of a code block it's printed as '@'.

I've fixed this. So may be in the future version, you type only @ - that's it. The only necessary step is that Raffael ( @Abnaxos ) merge the pull request #64- funny, my pull request has the same number like the @ symbol ;-).

See the detailed description of the corresponding changes:

See https://github.com/loddar/pegdown-doclet/blob/cf00dfc0fd73c1ecc6dc12c10be8d3a76ca5c7e5/markdown-corrections.md

Abnaxos added a commit that referenced this issue Jan 22, 2017
This should provide an acceptible solution for issues #65, #61, #23.
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