Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cduce
cduce
Commits
51d34f88
Commit
51d34f88
authored
Oct 05, 2007
by
Pietro Abate
Browse files
[r2002-11-16 13:30:35 by cvscast] Empty log message
Original author: cvscast Date: 2002-11-16 13:30:35+00:00
parent
8dd78b58
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/memento.cd
View file @
51d34f88
...
...
@@ -66,6 +66,12 @@ let fun format (Box | Section -> Block; Text -> [Flow*]; Content -> [Block*] )
| c -> c)
| c
&
Content -> (map c with x -> format x);;
let summary (Content -> Block)
c ->
let s = transform c with
<section>
[
<title>
t] -> [
<li>
t] in
match s with [] -> [] | lis ->
<ul>
lis;;
let out : Html =
<html>
[
<head>
[
<title>
title ]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment