Giter Site home page Giter Site logo

Comments (10)

ttscoff avatar ttscoff commented on July 20, 2024 1

@sobodash what do you get when you cat ~/.config/mdless/mdless.theme? What @daneah shows is definitely not right.

Also, @daneah , are you saying that it's working fine except for fenced code blocks? If that's the case, you need to open a separate ticket. This ticket refers to zero output happening.

from mdless.

ttscoff avatar ttscoff commented on July 20, 2024

from mdless.

 avatar commented on July 20, 2024

~ > mdless -d 4 test.md
W, [2019-11-18T18:56:32.769840 #49956] WARN -- : Error merging user theme
I, [2019-11-18T18:56:32.769974 #49956] INFO -- : Processing "test.md"
I, [2019-11-18T18:56:32.850276 #49958] INFO -- : Using ["bat", ""] as pager
~ >

from mdless.

ttscoff avatar ttscoff commented on July 20, 2024

from mdless.

 avatar commented on July 20, 2024

This does not appear to be the case:

~ > rm -rf ~/.config/mdless
~ > mdless -d 4 test.md
I, [2019-11-19T01:49:06.072215 #50214] INFO -- : Creating config directory at /Users/d/.config/mdless
I, [2019-11-19T01:49:06.072525 #50214] INFO -- : Writing fresh theme file to /Users/d/.config/mdless/mdless.theme
W, [2019-11-19T01:49:06.074716 #50214] WARN -- : Error merging user theme
I, [2019-11-19T01:49:06.074785 #50214] INFO -- : Processing "test.md"
I, [2019-11-19T01:49:06.130503 #50216] INFO -- : Using ["bat", ""] as pager
~ >

from mdless.

ttscoff avatar ttscoff commented on July 20, 2024

from mdless.

daneah avatar daneah commented on July 20, 2024

FWIW I'm experiencing this as a brand new user to mdless! I'd love to provide additional data if there's anything useful to be had from it:

macOS version: 10.14
Ruby version: 2.5.1
iTerm2 version: 3.3.6
What didn't work: Everything seems in order except the fenced code blocks for me, with/without pygments installed.
What I tried: Installing pygments, trying a few files with different programming languages represented
Am I using a custom theme: nope

$ cat ~/.config/mdless/mdless.theme
--- default

$

from mdless.

ttscoff avatar ttscoff commented on July 20, 2024

Just tested after deleting my mdless.theme and it wrote out what @daneah is showing. Still works, but that's definitely why it says there's an error merging. I'll dig into that, though I think it's separate from whatever @sobodash is experiencing.

from mdless.

ttscoff avatar ttscoff commented on July 20, 2024

Pushed v1.0.6 to the repo and to the gem server. It fixes the theme issue, so update to that before testing any further and let me know where we're at.

You'll want to delete ~/.config/mdless/mdless.theme before running the updated version to let it write out a correct theme.

from mdless.

 avatar commented on July 20, 2024

I decided to remove all gems, purge the gem directory, and reinstall. This is the output of mdless -d 4 with the newest version.

~ > gem uninstall -aIx
Removing mdless
Successfully uninstalled mdless-1.0.8
INFO: Uninstalled all gems in

~ > gem install mdless
Fetching mdless-1.0.8.gem
Successfully installed mdless-1.0.8
invalid options: -ri
(invalid options are ignored)
Parsing documentation for mdless-1.0.8
Installing ri documentation for mdless-1.0.8
Done installing documentation for mdless after 0 seconds
1 gem installed

~ > mdless -d 4 test.md
I, [2019-11-26T13:24:15.084004 #70433] INFO -- : Processing "test.md"
I, [2019-11-26T13:24:15.162317 #70435] INFO -- : Using ["bat", " -p"] as pager
~ >

from mdless.

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.