Skip to content

pelted/gitbook-plugin-block-align

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Block align plugin for GitBooks

A quick way of aligning markdown blocks in a GitBook. This should work for websites and generated ebooks.

Intent: Collaborators may not know anything about HTML so it is easier to explain one syntax (Markdown with Blocks) than expect non technical users to keep <div>, <p> tags with text alignment styles in their headspace too.

GitBook Example:

{% left %} This **will be** aligned left. {% endleft %}

{% right %} This **will be** aligned right. {% endright %}

{% center %} This **will be** centered. {% endcenter %}

Result:

<div class="ba-left"><p>This <strong>will be</strong> aligned left.</p></div>

<div class="ba-right"><p>This <strong>will be</strong> aligned right.</p></div>

<div class="ba-center"><p>This <strong>will be</strong> centered.</p></div>

This will be aligned left.

This will be aligned right.

This will be centered.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •