I know this is Wendy’s goddamit. I have made a Markdown pager and I’m currently busy with my other stuff such as my compiler, but I will add more features to it soon. I did not put much time on it and there was not much of fanfare for this, although what fare could be? I spent 5 days making an application that is only useful for me, myself and moi. But if you are terminal gang like me, use will find use for it. It can be a very useful tool for authoring markdown documents. You don’t need to be a programmer to use it.
Enjoy.
Would be great to have some screenshots so people know what they’re downloading
But I dd post an screenshot? When I was making the thread I could upload an image, and I uploaded an image of it.
Okay maybe it’s kbin being weird but there is no image.
How does this handle files with long lines (width) and/or long paragraphs (height)?
Reason for asking: MDP was always complaining about files or terminal size. A properly working alternative would be great.
Tia
It does not insert a newline. It let’s the terminal emulator decide.
Alright, MDP just aborts and complaints about the terminal size.
Will take a look at this, thanks for your work!
I think I need to work on sizes and line breaks more. I also need to make a border. Will see with MDP.
A ‘pager’ is a utility that takes a markup text (say, Roff) and displays that text, formatted, in the terminal. The first pager was nroff(1) for the aforementioned Roff, and you may still find nroff(1) on UNIX-based systems.
Wouldn’t it be less or more (or most) that is the pager part and roff being the part that does formatting for terminal. As far as I understand roff does the runoff of the text file. It formats the text properly and inserts all the necessary escape codes for terminal. Then that can be piped to pager which shows the text page by page.
Looks like an interesting project. Didn’t try it but looked into the source code and I think there was not really any keybindings similar to less. I suggest adding at least g, G, C-f and C-b.
But would it be possible for this project to utilize external pager? That would make the development easier.
Yeah I think you’re right about that one. The pagers are more/less, not nroff. I’m not sure how I can combine key in ncurses. Gotta look it up. Thanks again.
Why exactly would you want markdown from terminal?
Not Markdown ‘from’ terminal, ‘in terminal’.
Is this a Linux thing? Read the readme and still don’t get what any of it is about.
Fire up WSL2 and type
man grep
. That’s a pager showing the man page for grep. The pagers used are usually more or less (it’s literally their names) but sometimes most is used. Now this does that, but to markdown. Imagine you’re viewing a formatted markdown page, but in terminal.