Code Monkey home page Code Monkey logo

Comments (4)

bashbunni avatar bashbunni commented on June 1, 2024 2

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.

bashbunni avatar bashbunni commented on June 1, 2024

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.

thisismygitrepo avatar thisismygitrepo commented on June 1, 2024

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:

image

Hmmm, it looks like its getting a different color (blue), but the hash it self is rendered as is.

from glow.

thisismygitrepo avatar thisismygitrepo commented on June 1, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.