This conversation / specific post might also be helpful: Evaluating code written in non-SEXP language -- http://lists.racket-lang.org/users/archive/2013-September/059449.html
I've used a slightly modified version of Matthew Flatt's code from there to directly render Scribble from a string or port to HTML, just swap out the #lang for scribble/html. From there, you should be able to use read-html-as-xml to get an xexpr. I can't speak to the relative speed of doing it this way though. On Mon, Sep 30, 2013 at 3:54 PM, Stephen Chang <stch...@ccs.neu.edu> wrote: > Hi users, > > Now that Racket has a state-of-the-art package system and a > smashing-success conference, I think the obvious missing element in > the path to world domination is our very own pastebin, so I made one > during the hackathon. > > It renders a paste with scribble, to get syntax coloring and doc linking. > > (Preview here: pasterack.org, http://www.pasterack.org/pastes/6444) > > However, it is currently very slow because it naively writes a > scribble file to disk and then compiles it with a command line call, > because I couldnt figure out how to directly convert a scribble block > to html or xexpr. Does anyone know if this is this possible? > ____________________ > Racket Users list: > http://lists.racket-lang.org/users >
____________________ Racket Users list: http://lists.racket-lang.org/users