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

Create a {% figure %} tag #1

Merged
merged 1 commit into from Aug 25, 2014
Merged

Create a {% figure %} tag #1

merged 1 commit into from Aug 25, 2014

Conversation

@fofr
Copy link
Owner

@fofr fofr commented Aug 25, 2014

Creates a <figure> containing

  • an image with alt text
  • a link to a full size version of image
  • a <figcaption> based on content of tag
  • capability to render that content as markdown
  • CSS class hooks for size and orientation

Uses jsdom and jquery to strip out HTML from rendered markdown version of caption for use as alt text.

From

{% figure borneo-iphone-025.jpg landscape %}
A [barritonia](http://www.projectnoah.org/spottings/231146016 "Project Noah") flower
{% endfigure %}

Creates
screen shot 2014-08-25 at 13 00 52

Creates a <figure> containing
  * an image with alt text
  * a link to a full size version of image
  * a <figcaption> based on content of tag
  * capability to render that content as markdown
  * CSS class hooks for size and orientation

Uses jsdom and jquery to strip out HTML from rendered markdown version
of caption for use as alt text.
@fofr fofr changed the title Create a {figure} tag Create a {% figure %} tag Aug 25, 2014
fofr added a commit that referenced this pull request Aug 25, 2014
Create a {% figure %} tag
@fofr fofr merged commit b3b18d7 into master Aug 25, 2014
@fofr fofr deleted the figure-tags branch Aug 25, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

1 participant
You can’t perform that action at this time.