Commit 73b1e5e9 authored by Jerediah Fevold's avatar Jerediah Fevold
Browse files

Merge branch 'scripts'

parents a5d58db3 a4dce43a
Loading
Loading
Loading
Loading
+3 −2
Original line number Original line Diff line number Diff line
@@ -152,10 +152,10 @@ More details on the integration between Pandoc and Lua can be found [here](https
## ASN Rendering
## ASN Rendering
To colorize and indent the ASN.1 source in the specification, post-processing is required. The post-processing script can be found in scripts/asn1_render.lua.
To colorize and indent the ASN.1 source in the specification, post-processing is required. The post-processing script can be found in scripts/asn1_render.lua.


In the Markdown source, ASN1 blocks are wrapped in \~\~\~ asn1 \<source\> \~\~\~, which are identified by the last function in the script.
In the Markdown source, ASN1 blocks are wrapped in `~~~ asn1` and `~~~`, which are identified by the last function in the script.
> function CodeBlock(block)
> function CodeBlock(block)


The function is called on every *CodeBlock*, identified by an opening and closing series of \~\~\~. Then the script checks if the name of the *CodeBlock* matches "asn1".
The function is called on every *CodeBlock*, identified by an opening and closing series of `~~~`. Then the script checks if the name of the *CodeBlock* matches "asn1".


The function makes four modifications to the ASN1 blocks.
The function makes four modifications to the ASN1 blocks.
1. Colorize the ASN.1 keywords identified in the variable "keywords" defined at the top of the script.
1. Colorize the ASN.1 keywords identified in the variable "keywords" defined at the top of the script.
@@ -179,6 +179,7 @@ The function makes four modifications to the ASN1 blocks.
  criticalExtensionsFuture SEQUENCE {}
  criticalExtensionsFuture SEQUENCE {}
  }
  }
  }
  }
  ~~~
  ```
  ```


**HTML Output**
**HTML Output**