| Commit message (Collapse) | Author | Age |
|\
| |
| | |
Fix hanging indent behavior
|
| |
| |
| |
| |
| |
| |
| |
| | |
We want to treat it as a plain paragraph if the hanging amount is
greater to or equal to the left indent---i.e., if the first line has
zero indentation. But we still want it to be a block quote if it starts
to the right of the margin. Someone might format verse with wrapping
lines with a hanging indent, for example.
|
| |
| |
| |
| |
| |
| | |
Here, when hanging indents are greater than or equal to left indents, we
don't set it to block quote. Such indents are frequently used in
academic bibliographies. (Thanks to Caleb McDaniel.)
|
| |
| |
| |
| |
| | |
This lets us keep more information about the indentation, and act
accordingly in the reader.
|
|\ \
| | |
| | | |
Docx writer: insert bookmark tags inside <w:p> tag.
|
| |/
| |
| |
| |
| | |
This makes the header anchors in pandoc-generated ooxml match those
generated by word.
|
|\ \
| |/
|/| |
Docx Reader: Update state properly
|
|/
|
|
|
|
| |
Previously, a fresh state was created for the purpose of updating. In
the future, when there is more than one field in the state, this
obviously won't work.
|
|\
| |
| | |
Docx Reader: Extend auto id behavior to all headers
|
| |
| |
| |
| | |
Now doing auto ids for all headers, so tests should reflect that.
|
|/
|
|
|
| |
Previously, only those with an anchor got an auto id. Now, all do, which
puts it in line with pandoc's markdown extension.
|
|\
| |
| | |
New DocxContext Monad, and rewriting anchor ids
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
Record relationship between original id and auto id, so we can fix links
after.
|
| |
| |
| |
| | |
In preparation for auto ids.
|
| |
| |
| |
| |
| |
| | |
Using pattern guard, in preparation for doing some more complicated
stuff with it (recording header anchors, so we can change them to auto
ids.)
|
| |
| |
| |
| |
| | |
Use PatternGuards to get rid of need for `isJust`, `fromJust`
altogether.
|
| |
| |
| |
| |
| | |
It only applies to headers, so we can just apply it when we make a
header.
|
|/
|
|
|
|
|
| |
This is a ReaderT State stack, which keeps track of some environment info, such
as the options and the docx doc. The state will come in handy in the future,
for a couple of planned features (rewriting the section anchors as auto_idents,
and hopefully smart-quoting).
|
|
|
|
|
| |
This fixed a bug wherein `--filter ./caps.py` would run `caps.py` from
the system path, even if there was a `caps.py` in the working directory.
|
|
|
|
| |
See #1346.
|
|\
| |
| | |
Track changes with options
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
|\ \
| | |
| | | |
Docx reader: Code cleanup in parse.
|
|/ /
| |
| |
| | |
Remove some redundant ways of dealing with Maybe.
|
|\|
| |
| | |
Rudimentary track-changes support
|
| |
| |
| |
| |
| |
| |
| | |
This is what seems like the sensible default: read in insertions, and
ignore deletions. In the future, it would be good if options were
available for either taking in deletions or keeping both in some
scriptable format.
|
| |
| |
| |
| | |
mapMaybe does the filtering for us.
|
| |
| |
| |
| | |
This will only read the insertions, and ignore the deletions.
|
| |
| |
| |
| |
| | |
This is just for the Parse module, reading it into the Docx format. It
still has to be translated into pandoc.
|
|/
|
|
| |
Insertion and deletion. Dates are just strings for now.
|
|\
| |
| | |
Docx reader: Ignore zero (or negative) indent
|
| |
| |
| |
| |
| | |
If a block has an indentation less than or equal to zero, it should not be
treated as a block quote.
|
|\|
| |
| | |
Docx verbatim code formatting
|
| |
| |
| |
| |
| | |
This marks the removal of the final tree-walk in the code. (Though there
is still one in the Lists module.)
|
| |
| |
| |
| |
| | |
This commit also fixes a problem with the previous code pushes, which
wouldn't allow code blocks to share a div.
|
| | |
|
| | |
|
|/ |
|
|\
| |
| | |
Add copyright block to T.P.R.Docx.Reducible.
|
|/ |
|
|\
| |
| | |
Docx rewrite and cleanup (in terms of Reducible typeclass)
|