(pad: PadType, revNum: string)
| 32 | import {StringAssembler} from "../../static/js/StringAssembler"; |
| 33 | |
| 34 | const getPadHTML = async (pad: PadType, revNum: string) => { |
| 35 | let atext = pad.atext; |
| 36 | |
| 37 | // fetch revision atext |
| 38 | if (revNum !== undefined) { |
| 39 | atext = await pad.getInternalRevisionAText(revNum); |
| 40 | } |
| 41 | |
| 42 | // convert atext to html |
| 43 | return await getHTMLFromAtext(pad, atext); |
| 44 | }; |
| 45 | |
| 46 | const getHTMLFromAtext = async (pad:PadType, atext: AText, authorColors?: string[]) => { |
| 47 | const apool = pad.apool(); |
no test coverage detected