I don't want the person to be able to modify the outline. That is what I meant by "read only". I want someone to view a representation in a browser that is similar to how it looks in the installed version of Leo and without having to install the leo executable. I do want expand and collapse. I know how to create expand and collapse in html but I'm not sure how to get the content out of Leo.
Is there a way to export an outline in an html format where the format of the html is similar to the desktop version of Leo with the expands and collapses. I want to send someone a copy of my outline that they can use in a browser to view. This is view only.
I tried the plugin leo to html but it seems that this is for an outline that was written as html.
I tried RST3 but the html is all on the left margin and I’m getting weird error messages.
I read about rendered view exporting as html but I couldn’t get the html to be export.
I saw a JS port of leo for the web but I suspect I’l have to host a version. I just want to send an html document that everyone can use out of the box.
It looks like I’ll have to write a plugin. Would RST3 be the best place to start?
Brian
--
You received this message because you are subscribed to the Google Groups "leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to leo-editor+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/leo-editor/4c3aa801-903b-4150-b50b-3d0cf3a193a4n%40googlegroups.com.
@edwardMy goal is to generate a self contained html file that I can send to someone so they can view the content I created without installing leo. I'm using leo as an outlining tool and not as a software development tool. With the html someone can double click the html file and view a representation of the outline in a browser. Some people have issues with installing software so I'm trying to avoid forcing someone to install leo. Some businesses require IT sign off before even thinking about installing software. Having to install leo could be a blocker. LeoJS will not work since it has to be setup with VS code. It is easier for someone to install leo than setup LeoJS with VS code. A non-dev will be lost in VS code.
Hi Brian. Great question. Indeed your concept could be very useful. I'll try my hand at it this week-end.And yes leojs is great, but like Thomas said, it's a full fledged leo that is not a minimal html readable tree that you would likeThanks for your interest in Leo 😃
Félix, there is no one but you I would trust with such a project. Only you have the deep knowledge of Leo, your LeoJS scripts, and web technology that would be required for such a project.But does the OP's request make sense? Isn't possible malware another name for an .html file? How will distributing Leo outlines as .html files pass the first security sniff test?
It seems to me that the display of an outline should be read-only, with a few interactive features like expanding nodes. That way the user doesn't need to learn anything special. Security aside, this brings in the tricky question about how to handle @other trees in a way that a user can understand without climbing a learning curve. Named sections don't present a problem, I think. I'm also sure that sentinels should not be visible. I don't know where that leaves Leo directives.
Security might be a real concern.
OTOH, a Leo outline running in Leo could also be a security concern
- it could modify a standard Leo command to do something nefarious. For myself, I use a javascript blocker in my browser. It would be best if the read-only representation of a Leo outline wouldn't need to import any script packages, for then a script blocker won't need to be told to make an exception, which once again could become a security matter.
But Leo can do nothing to prevent the unwary from foolishly clicking a button in an outline from an unknown source. In this sense, passing .leo files around should be a real security concern.- it could modify a standard Leo command to do something nefarious. For myself, I use a javascript blocker in my browser. It would be best if the read-only representation of a Leo outline wouldn't need to import any script packages, for then a script blocker won't need to be told to make an exception, which once again could become a security matter.I don't believe BitDefender would likely detect malicious .leo file. They would likely constitute a Day zero exploit.
@Edward,You are correct about still being a security issue with html. Most companies have protections against web attacks.
My thought is most users won't have admin access to their work computer so they would have to go through IT which would take a lot of time and may not be able to happen. I suspect attaching a html file will be able to be opened. But worst case, I can put the html on my website and give them a link.
@Edward @Brian
Let me cook... 😎