Comments (4)
Hey @thisismygitrepo you can set your own custom styles for Glamour (the markdown renderer itself) that will then be used in Glow.
To use custom styles in Glamour, you can create your own style config file. In this case, I would recommend finding the json
file of the theme that you like most, then tweaking it to your own preferences. For example, with this dark theme, you can remove the prefixes for the headings, then use the -s
flag to pass your own custom stylesheet. Your question also made me realize that we're missing support for defining custom styles with environment variables (GLAMOUR_STYLE
) in Glow, so I've opened a PR to that effect.
https://github.com/charmbracelet/glamour/blob/master/styles/dark.json
Where to find this info in the docs
I hope that helps! Let me know if there's anything I missed in your question :)
from glow.
Hey, it looks like your formatting might be off. Are you still having this issue if you add a space between the "#" and the heading text? Please let us know if that's the case :)
from glow.
Hi @bashbunni
I deliberately did that misformating to mimic how glow
fails to render.
The actual failure occurs even when you do the correct formatting with spaces you mentioned.
This is what I'm getting now:
Hmmm, it looks like its getting a different color (blue), but the hash it self is rendered as is.
from glow.
Looking at the GIF in the read me, it shows similar results to what I get, so apparently this is not a bug, its just how glow renders.
https://github.com/charmbracelet/glow?tab=readme-ov-file
Hmmm, keeping the hash as is is not very esthetic imo
from glow.
Related Issues (20)
- Open Editors at Current Line Number in Pager HOT 2
- make glow work with 'less --no-init'
- Glow doesn't see markdown files. `.gitignore` HOT 3
- glow shuffles lines randomly after scrolling using u/d buttons or mouse HOT 3
- Cases when backslash should not be shown
- Unable to locate package glow HOT 1
- Render wrapping lists correctly
- Add watch mode for glow HOT 1
- `rst` Support
- adding hooks to code blocks to transfer their content to external scripts HOT 1
- Correctly render nested blockquotes HOT 1
- Add support for dnf config-manager
- Can't Read from mount HOT 2
- Show relative paths HOT 2
- feat: Output streaming HOT 1
- URL links do not get rendered inside bold text
- v1.5.1 does not build cleanly with vendored depdencies HOT 1
- Ability to control line spacing
- Render streamed input incrementally 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 glow.