marked - a MarkDown viewer [beta]

Discuss and share scripts and script files...
Post Reply
bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

marked - a MarkDown viewer [beta]

Post by bdeshi »

View MarkDown files in rendered HTML utilizing marked.js.
Might not support all types of code, but sure beats opening a fat webkit app for a quick preview! :kidding:
marked.xys
v1.0.b2
(22.14 KiB) Downloaded 412 times
Note 1: this was written as a pfa script, so uses <pfaitem> as source. Change the $file variable to <curitem> or whatever for other use cases.

Code: Select all

"Marked|<xyicons>\ext\ext_md.ico" md;markdown>::load "marked.xys"; //pfa entry to go with this script
Note 2: You can supply custom CSS with the $customCss variable.

*focus lines not included
*focus lines not included
marked-preview.png (49.38 KiB) Viewed 3492 times
[/size]*focus lines not included

TODO: Nicer default styles. fix more relative links.

=====

changes
v1.0b2
- relative link and images (<a>, <img>) are normalized
- simplified css customization. Now $customCss is the only source of all styles.
- fixed some styling issues (cropped images, dupe scrollbars)
v1.0b1
- init

old versions
marked.xys
v1.0b1
(21.84 KiB) Downloaded 267 times
[/size]
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

highend
Posts: 14733
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: marked - a MarkDown viewer [beta]

Post by highend »

Nice idea :)

I've added it to the scripts overview thread...
One of my scripts helped you out? Please donate via Paypal

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: marked - a MarkDown viewer [beta]

Post by bdeshi »

Thanks! :D
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

MBaas
Posts: 655
Joined: 15 Feb 2016 21:08

Re: marked - a MarkDown viewer [beta]

Post by MBaas »

Thanks - good work! ;-)
_________________________________________________
Happy user with Screen scaling 100% and W11Pro 24H2 ;-)

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: marked - a MarkDown viewer [beta]

Post by bdeshi »

Thank you, MBaas!
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

Post Reply