Support of HTML source block added. #42

Merged
merged 9 commits into from Feb 6, 2013

2 participants

@vonavi
Collaborator

Hey!
It's again me :) This code provides the support of HTML source blocks. The examples were checked.
Best regards,
Vladimir.

@vonavi
Collaborator

Hey!

There are new changes. First, HTML tags can be used if they are marked with @ in accordance with Quoting HTML tags. Second, formatting images to both HTML and Textile formats was turned to the default Org-mode behavior. It significantly modifies the previous behavior, however, it gives the possibility to use as inline images as links, and corresponds to the Org-mode manual: Images in HTML export.

For instance, Org-mode source

* Links and images

- [[http://google.com]]
- [[http://google.com][Google]]
- [[http://image.jpg]]
- [[http://image.jpg][image description]]
- [[http://image.jpg][file:thumb.jpg]]
- [[http://google.com][file:thumb.jpg]]

produces the following HTML output:

<h1>Links and images</h1>
<ul>
  <li><a href="http://google.com">http://google.com</a></li>
  <li><a href="http://google.com">Google</a></li>
  <li><img src="http://image.jpg" alt="http://image.jpg" /></li>
  <li><a href="http://image.jpg">image description</a></li>
  <li><a href="http://image.jpg"><img src="thumb.jpg" alt="thumb.jpg" /></a></li>
  <li><a href="http://google.com"><img src="thumb.jpg" alt="thumb.jpg" /></a></li>
  <li><img src="http://image.jpg" alt="http://image.jpg" /></li>
  <li><a href="thumb.jpg"><img src="thumb.jpg" alt="thumb.jpg" /></a></li>
  <li><a href="thumb.jpg">image description</a></li>
  <li><a href="hz.html">description</a></li>
</ul>

Best regards,
Vladimir.

@vonavi
Collaborator

I updated the example from the last comment in accordance with the current code stage.

@wallyqs wallyqs merged commit ff9be16 into bdewey:master Feb 6, 2013
@wallyqs
Collaborator

Hey Vladimir, big changes are welcome. Specs are ok and it looks good so I merged it. I think this is going to be a good release of the gem, thanks for helping out.

@vonavi
Collaborator

No prob. I had fun working on this gem 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment