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

Wrong code display #322

Open
evgeny-panasyuk opened this issue Oct 16, 2016 · 3 comments
Open

Wrong code display #322

evgeny-panasyuk opened this issue Oct 16, 2016 · 3 comments

Comments

@evgeny-panasyuk
Copy link

evgeny-panasyuk commented Oct 16, 2016

Wrong display of code on pages like this.

Code is:

#include <boost/multi_index_container.hpp>
#include <boost/multi_index/ordered_index.hpp>
namespace bmi = boost::multi_index; 
...

But sx.el displays it as:

#include <boost/multi_index_container.hpp>
#include 
namespace bmi = boost::multi_index;

Also the same issue present within temp buffer (when click on code).

I saw similar problem (with missing include) on several other C++ questions.

@vermiculus
Copy link
Owner

vermiculus commented Oct 16, 2016

It looks like the tag-bot-info tag's implementation works just fine.

The problem in master is sx-question-print.el:575 call to markdown-code-at-point-p.

@jrblevin, does markdown-code-at-point-p really only work with inline code blocks? Could we / should we use markdown-code-block-at-point instead?

@Malabarba do you foresee any issues with doing this? It's just a boolean check, so I think we'll be ok.

@jrblevin
Copy link

Sorry for the long delay in responding. I changed the function name to markdown-inline-code-at-point-p for clarity and marked the old one as obsolete. Indeed, it only checks for inline code at the point (because it's useful to separate the block and inline parsing steps).

@dvzubarev
Copy link

I can still reproduce a problem.
sx - 0.3, sx-20170521.1832
markdown-mode - 2.4-dev, markdown-mode-20170925.912

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

4 participants