Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New image and link attributes #2351

Closed
wants to merge 342 commits into from

Conversation

mb21
Copy link
Collaborator

@mb21 mb21 commented Aug 7, 2015

  • rebased the new-image-attributes branch from master
  • added image width/height support for a few readers
  • added link attributes

see pandoc issue #261 and pandoc-types pull #14

jgm and others added 30 commits May 3, 2015 22:04
Also use a proper css parser (adds dependency on text-css).

Closes jgm#2129.
Update README on in-field markup in biblio databases
Previously we just stripped them out; now we convert
other line ending styles to LF line endings.

Closes jgm#2132.
README: Add documentation on backtick_code_blocks
* Allow `--css` to be used to specify stylesheets.
* Deprecated `--epub-stylesheet` and made it a synoynym of
  `--css`.
* If a code block with class "css" is given as contents of the
  `stylesheet` metadata field, use its literal code as contents of
  the epub stylesheet.  Otherwise, treat it as a filename and
  read the file.
* Note: `--css` and `stylesheet` in metadata are not compatible.
  `stylesheet` takes precedence.
This reverts commit 1c2951d.

See jgm#2040.

The semantics was too squishy.  `--css` takes a URL, but
for EPUB we need files that we can read.  I prefer keeping
the old system for now, with `--epub-stylesheet`.
This will give us better error reporting options.
This is part of a fix for jgm#1834.
Closes jgm#1834.  The image originally supplied works fine now
with pandoc.
InDesign expects LinkResourceURI to start with "file:" for local filenames, and won't render/link the image without.
Earlier versions had a bug and would wrongly think
opening tags containing attributes with slashes in them
were self-closing.

Closes jgm#2146.
Also use `\addbibresource` instead of `\bibliography` for biblatex.

See jgm#1661.
…used.

Not when `bibliography` field in metadata is specified.

Closes jgm#1849.
Instead, just use an a element with class `footnoteRef`.
This allows more styling options, and provides better results
in some readers (e.g. iBooks, where anything inside the a
tag breaks popup footnotes).

Closes jgm#1995.
Introduced by e9d7504.

This regression caused link and image references containing
raw tex not to parse correctly.

Added test.

Closes jgm#2150.
jgm and others added 24 commits July 21, 2015 22:44
Technically this isn't allowed in an HTML comment, but
we've always allowed it, and so do most other implementations.
It is handy if e.g. you want to put command line arguments
in HTML comments.
The abstract populates an "abstract" metadata field.
Fix implicit header refs for headers with extra spaces
This makes keys with extra space at the beginning and end
work:  e.g.

    [foo]: bar

    [ foo ]

will now be a link to bar (it wasn't before).
we no longer need it with the change to toKey, and it
is expensive to skip spaces after every inline.
Fully implemented features:

* Paragraphs
* Headers
* Basic styling
* Unordered lists
* Ordered lists
* External Links
* Internal Links
* Footnotes, Endnotes
* Blockquotes

Partly implemented features:

* Citations
  Very basic, but pandoc can't do much more
* Tables
  No headers, no sizing, limited styling
* Added `Ext_common_link_attributes` constructor to `Extension`
  (for link and image attributes).
* Added this to `pandocExtensions` and `phpMarkdownExtraExtensions`.
* Added `writerDpi` to `WriterOptions`.
* pandoc.hs:  Added `--dpi` option.
* Updated README for `--dpi` and `common_link_attributes` extension.

Patch due to mb21, with some modifications: `writerDpi` is now an
`Int` rather than a `Double`.
API change:  It is now `WriterOptions -> Pandoc -> IO String`.

Also handle new image attributes.

(mb21)
@mb21
Copy link
Collaborator Author

mb21 commented Dec 5, 2015

these commits were merged independently of this pull...

@mb21 mb21 closed this Dec 5, 2015
@mb21 mb21 deleted the new-image-attributes branch December 24, 2016 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.