Skip to content

Latest commit

 

History

History

CustomDirectives

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Custom Directives

Directives help you write texts similar to markdown using a directive keyword. All the pages that contains Contents, support custom directives. Also, some of this page's content has been written in custom directives.

  • Make sure to close each directives appropriately to avoid render issues.

Available Directives:

  1. @pg / @endpg: an open/close custom directive, allows you to create a new paragraph that gives vertical spaces between two paragraphs. Spaces between any consecutive paragraphs are approximately 32 pixels.
  2. @block / @endblock: An open/close custom directive, which allows you to enter a new line without creating a new paragraph.
  3. @link: A functional custom directive, allows you to create a link with given name and URL. The first argument is the link. The second argument is the name of the link
  4. @marker: a functional custom directive, allows you to mark a text highlighted.

Example of all previously mentioned directives:

Usage:

@pg This is a paragraph and @marker([ this text is highlighted ]), by using block directive @block I can move this line in a new line @endblock I can also put @link([ https://google.com ][ Google ]) link here. now I end the paragrpah @endpg @pg This is the start of the second paragraph @endpg

Output:

This is a paragraph and this text is highlighted, by using block directive I can move this line in a new line I can also put Google link here. now I end the paragrpah

This is the start of the second paragraph