Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×

Copying Markdown or Plain HTML

Hi, I want to simply copy simple HTML without any CSS to a handout. Alternatively I would like to copy markdown. The result shall be a Roll20-formatted Description & Notes text or a GM Notes text. Just as I typed it into the editor and used the paragraph styling. Isn't just possible or what I am doing wrong??? Cheers, Marc
1782999344

Edited 1782999366
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Hi Marc! The first thing I would try after pasting styled HTML (about the only kind you are going to find online), try the format eraser button in the handout's text editor controls. Depending on how it was styled, that might work. It doesn't recognize custom classes that your source HTML might be using, just, H1, H2, blockquote, etc. Otherwise, you would have to have a source of "simple HTML". Unless you are creating it yourself with something like Dreamweaver, that's kind of hard to find. Most online sites have some level of styling, or use things like divs and spans. The most certain results are achieved with the laborious process of pasting plain text and using the internal styling controls. Same with markdown. You can paste markdown into a place that formats and renders it as HTML, but you would have to find a place that guarantees that they are letting the browser decide what font to use, what H1 looks like, etc. Unless you can find sources like that, you have two options that avoid manual styling: Check out Stephen S.' Markdown script. You type or paste  markdown in the GMNotes, it references a CSS style handout and renders the HTML in the notes area. If you defined all of your styles like "H1 {}", etc, I'm guessing it would render all basic HTML tags free of extra styling. A script could be written that would strip all styling and non Roll20-handled tags from a handout's HTML. The Format Eraser button does this, but it's not perfect.
1783009290
Brian C.
Pro
Marketplace Creator
Compendium Curator
Search for html5-editor dot net. It has a very good Clean function that strips all the extras from HTML. You can then paste the HTML into the handout and add things like color to text.
Thanks to both of you – that's nevertheless one additional step... But I have to do this that way. In general the external connection possibilities (aka no API) of Roll20 are a pain.