module Textile_html:Facilities for converting textile into htmlsig
..end
exception Invalid_textile of string
Header 10
.val of_stream : ?escape_cdata:bool ->
?escape_nott:bool -> Textile.block Stream.t -> string Stream.t
escape
is false. Default is true.val of_block : ?escape_cdata:bool -> ?escape_nott:bool -> Textile.block -> string
let () =
let to_lines path =
let chan = open_in path in
Stream.from
(fun _ ->
try Some (input_line chan)
with End_of_file -> None) in
let lines = to_lines "test.txt" in
let textile = Textile_pasrer.of_stream lines in
Stream.iter print_endline (Textile_html.of_block textile)