You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Im trying to use markdown with the console pager.
Witout the pager, the rendering is correct. headings, numberd items, code etc.
When the pager is enabled most of the rendering is plain
markdown= '''
# Heading 1
## Heading 2
1. pointA
2. pointB
`im code `
'''
a = 1
if a == 1:
md= Markdown(markdown)
console = Console()
console.print(md)
if a == 2:
md= Markdown(markdown)
console = Console()
with console.pager():
console.print(md)
Output when a =1
Output when a =2
heading 1 is rendered.
heading2 , numbered items and code not rendered.
The text was updated successfully, but these errors were encountered:
MANPAGER and PAGER are environment variables as mentioned in the docs. If you need a quick overview of environment variables, I'd recommend checking out this video: https://www.youtube.com/watch?v=h36Xc38SDHg
For example, here's how you could use the env utility to set MANPAGER when running your code:
Describe the bug
Im trying to use markdown with the console pager.
Witout the pager, the rendering is correct. headings, numberd items, code etc.
When the pager is enabled most of the rendering is plain
Output when a =1
Output when a =2
The text was updated successfully, but these errors were encountered: