Comments (9)
This one is a bad one. I don't know how to fix this generically without complicating the span logic by a huge extent. I guess I will just restrict the markdown math span to single lines for now.
from poly-markdown.
Ok. I figured out a simple solutions. Thanks for reporting this.
from poly-markdown.
Could you please push this into Melpa Stable or at least into Melpa. If this is not likely to happen soon, then I can try installing manually using git clone.
from poly-markdown.
It's always on Melpa. I will tag for Melpa Stable tomorrow.
from poly-markdown.
Problem persists after upgrading polymode
, poly-markdown
, poly-R
and poly-noweb
to 0.2 from Melpa Stable.
Minimal working example of the problem is
echo $PATH
- As I type
echo $PATH
inside the fenced block in a markdown file,polymode
switches the buffer mode fromMarkdown PM
toLaTex/P PM
as soon as I type the$
. - It will come back to
Markdown PM
if I type another$
without any intervening spaces or new line (sayecho $PATH$
) - But if instead I start a new line and I type a
$
on the new line (say,echo $HOME
), it does not return toMarkdown PM
. - The result is that after one line in a fenced block containing a single
$
, the buffer remains inLaTex/P PM
mode till the end of the file regardless of how many more$
's it contains.
I have confirmed this behaviour with emacs -Q
after running the following in a scratch buffer
(require 'package)
(package-initialize nil)
from poly-markdown.
This is only in unnamed blocks right? In named ones things behave as expected right?
from poly-markdown.
Absolutely. Never thought that just naming the block would solve the problem!
from poly-markdown.
The unnamed blocks (aka those without an explicit mode) are not treated by polymode in any special way. This is why you get this results. Fixing this is a bit tricky mostly for reasons described in #9 but should be possible after the recent core rewrite.
from poly-markdown.
Using an explicit mode is good practice in any case, and also makes editing the block in emacs
easier. If nothing else, one can always use text
as the mode. I am happy with the current solution.
Thanks again for a wonderful emacs
package.
from poly-markdown.
Related Issues (20)
- A problem while installing poly-markdown from epla HOT 7
- Invalid slot type: pm-inner-chunkmode, head-matcher HOT 3
- Documentation of pm-inner/markdown-inline-math wrong
- Support for \[ \] and \( \) math modes HOT 5
- Overly aggressive inline fontification for multi-word inline code HOT 4
- Use add-hook instead of add to list HOT 5
- `fill-paragraph` causes Lisp nesting HOT 4
- mode-matcher and sh-mode HOT 1
- Errors running polymode HOT 2
- Raw blocks in pandoc markdown HOT 1
- Code folding with RMarkdown
- Unable to navigate markdown files
- Loading code in Agda code blocks removes syntax highlighting from the Markdown text
- Latex (Math) highlight is broken when auctex is installed
- Support additional pandoc language tag syntax
- Buffer-font-mode doesn't switch to fixed-pitch for code-blocks HOT 1
- breakage of highlighting and `markdown-hide-urls` HOT 3
- Tripple tilde does not work
- How to enable Scheme evaluation? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from poly-markdown.