Comments (5)
Two things are at play here:
MathJax is not part of the markdown spec so excluding them from italics can't happen by default. This bundle only supports the base markdown, the MathJax bundle could add a match for the blocks and exclude italics inside them if desired.
The example provided does not happen with the grammar from this bundle, we require an ending to the italics exist on the same line. The grammar at fault here is in the Markdown (Github) bundle which is more permissive about where italics are allowed.
from markdown.tmbundle.
This might have been already fixed in the Github Markdown bundle, see textmate/GitHub-Markdown.tmbundle#21
from markdown.tmbundle.
@noniq Thanks for that. I will check it out.
from markdown.tmbundle.
@fonnesbeck I had missed the @noniq pull request being accepted so my bundle was outdated and I hadn't deployed this change. However it did not actually solve the issue due to some interactions with the rule and the standard italics rule. I've made a new pull request at textmate/GitHub-Markdown.tmbundle#24 which contains some fixes and somewhat improves your use case. It will still match in an undesired fashion but will no longer extend outside the current line. It could also be confused by two MathJax strings on the same line but would still not persist the error past the line.
from markdown.tmbundle.
@infininight Thanks, I will test the new PR, which I see is already merged.
from markdown.tmbundle.
Related Issues (20)
- Bundle stopped working with the update of TextMate HOT 2
- error when previewing markdown file HOT 1
- Auto Expand Headings adds β#" HOT 4
- Automatic numbering in the Markdown in TextMate 2 HOT 1
- Failure running βLevel 2 [setext]β. HOT 4
- Feature Request: YAML Front Matter HOT 3
- YAML Front Matter Formatting? HOT 2
- Lists Are Only Found If After A Newline HOT 3
- List auto complete + tab separate font HOT 6
- Unexpected italic style in diff views HOT 1
- New Item/Subitem broken HOT 4
- HTML tags with open/close on separate lines breaks the grammar
- Code not formatted properly HOT 8
- Printing Markdown preview crashes TM HOT 2
- Header with only CJK characters break html HOT 4
- Hash comments in code blocks HOT 3
- Link Title can have single quotes
- Support task list items HOT 1
- Markdown: Shell fenced code block have incorrect syntax highlighting after indent 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 markdown.tmbundle.