ascii.html

The {{<ascii>}} shortcode renders AsciiDoc markup content inside of markdown files.

Before you start


Examples

Table

Name Age City

John

25

New York

Lisa

28

Los Angeles

Michael

31

Chicago

|===
| Name    | Age | City      

| John    | 25  | New York  
| Lisa    | 28  | Los Angeles
| Michael | 31  | Chicago   
|===

Source code

{{/*  Requires:
    -  ascii doctor https://docs.asciidoctor.org/asciidoctor/latest/install/ 
    - whitelist ascii doctor in /config/_default/security.yaml
     */}}
{{- $opts := dict "markup" "ad" -}}
{{- .Inner | .Page.RenderString $opts -}}


{{/*  Example: 
{{<ascii>}}
|===
| Name    | Age | City      

| John    | 25  | New York  
| Lisa    | 28  | Los Angeles
| Michael | 31  | Chicago   
|===
{{</ascii>}}
*/}}