Comments (12)
I do not see escape codes when running pygmentize
directly:
from mdless.
from mdless.
from mdless.
Here is another data point. I moved to another system (moved my development from an AWS EC2 instance to a Vagrant VM). Also moved from RHEL 8.3 to CentOS 7. What I'm seeing now is extra blank lines inserted after the line with files:
in it. Also the bottom line (horizontal line) is broken:
from mdless.
Oops, I just realized I didn't install pygments. So I've installed python-pygments (python2) and now I get:
from mdless.
Well, that older pygmentize doesn't know about my language:
[root@localhost source]# pygmentize -L|grep cf3
[root@localhost source]#
from mdless.
Okay, I've reproduced the issue (escape codes visible in code block) using the latest pygmentize:
from mdless.
One more data point: If I add a header to my markdown source, the escape codes in the code block disappear.
Here is my markdown source:
from mdless.
I don't know if it is the case for you, but I worked out that I was seeing the Escape codes because my PAGER was most
export PAGER=most
echo '#h1
' | mdless
^[[0;1;47;90mh1 ===
The workaround is to disable the PAGER with the -P
switch or change your PAGER to less
or something else.
Workaround
export PAGER=less
or
echo '#h1
' | PAGER=less mdless
from mdless.
from mdless.
Sorry it took me so long to get back around to this, @atsaloli . Did you ever find a resolution for the issue?
from mdless.
I found a workaround @ttscoff -- see atsaloli/cf3-tutorial@fee89be
As noted in #60 (comment) my workaround is to add a header
Thanks for following up! :)
I was very happy to be able to teach my class using mdless
from mdless.
Related Issues (20)
- Problem with codeblocks following lists HOT 9
- math equations ($$) HOT 3
- how to set image width and height HOT 7
- `GIT_PAGER=mdless git log` hangs HOT 3
- Request support for Alactritty Terminal Emulator HOT 2
- How to use built-in pager? HOT 4
- Display multiple sections with '-s' HOT 7
- Rendering headers & paragraphs HOT 2
- In contrast to less: mdless doesn't adapt to changing view port of terminal HOT 21
- Code Block rendering shows additional newlines if code block is indented too much HOT 2
- Snap install trying to access '/etc/gitconfig' HOT 7
- 2.0.3 build issue HOT 2
- Table inherit its size from previous table in the file HOT 4
- Not compatible with watch HOT 2
- Strange behaviour when opening in a "small terminal" HOT 4
- Is v2.1.3 the latest release? HOT 6
- empty character in codeblock doesn't work anymore HOT 11
- Ubuntu 20.04, Ruby 2.7.0p0, mdless 2.1.28 gem - syntax error in `string.rb` HOT 4
- Error in convertor.rb HOT 2
- 404 error from gem file on "rake install" 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 mdless.