Comments (2)
You can't have an element wrapping your entire code block—the structure of editor content is a sequence of lines. You could use line decorations to style all the lines that make up the code block in a different way. The approach to take would be to iterate through the syntax tree for the visible content in a plugin to create these decorations every time the document or viewport changes.
Closing this, since it's not a bug report. The forum is a better place for questions.
from markdown.
@marijnh I understand. Can you show me an example of code to do this though? I am not understanding how this works...
from markdown.
Related Issues (20)
- Table extension does not follow GFM spec (cannot interrupt a paragraph) HOT 5
- Proposed exports HOT 4
- Some reference documentation is not updated HOT 1
- The `line`-parameter in `BlockParser` `parse()`-methods should not be a side-effect HOT 2
- Unable to run "prepare" script HOT 3
- More extensions: Insert and Mark HOT 3
- Table parser does not create a TableCell element that is empty or only comprised of spaces/tabs. HOT 8
- Is removing language features possible? HOT 1
- Checklists/todos are highlighted as such without a trailing slash HOT 5
- heads up: swc fails to minify the package correctly HOT 3
- Code block breaks when backticks are inside a property HOT 1
- Autolink fails for URLs with >3 parts in the domain HOT 2
- Table folding not work HOT 1
- Autolinks and regular link URLs are both parsed as "URL" nodes
- Spec deviation with angle-bracketed link destination followed by title
- Add alerts to GFM HOT 1
- MDX support HOT 1
- Autolink ending with '/' in an image HOT 1
- Custom tags for table elements HOT 5
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.