Images : Align left, right or middle

nmc's Avatar

nmc

04 Jan, 2014 01:46 PM

Just an idea I've seen this somewhere and would use a lot in marked:

In the generated HTML,

  • If the markdown code for image []() is just BEFORE a text (no line break), the image tag is generated with "align='left'" ()
  • If the markdown code for image []() is just AFTER a text (no line break), the image tag is generated with "align='right'" ()
  • If there is a line break in the code, nothing is indicated (but an option to add centering would be nice)

I hope it is understandable, I'm sorry I can't remember where I have seen this functionality. I do not know if it is easy to implement, but its use is very intuitive and it extends the possibilities (for the moment I'm modifying the generated code to add these).

Another suggestion: the option to add target="_blank" in HTML generated links.

Thanks !

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac