Commit b6f3c6e 1 parent 400c6aa commit b6f3c6e Copy full SHA for b6f3c6e
File tree 1 file changed +22
-0
lines changed
author/topics/document-format
1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -128,6 +128,7 @@ Where:
128
128
--
129
129
====
130
130
131
+ == Semantic elements
131
132
132
133
=== Identifier
133
134
@@ -208,6 +209,27 @@ rendering.
208
209
NOTE: Only certain Metanorma flavors support enhanced rendering for
209
210
semantically-tagged content.
210
211
212
+ === Dates
213
+
214
+ The `date` command is used to introduce dates and date-times as semantic
215
+ elements [added in https://github.com/metanorma/metanorma-standoc/releases/tag/v2.4.5].
216
+ The value of the `date:[]` macro is an ISO-8601 formatted date or date-time.
217
+ The second argument given in the macro, if present, is a
218
+ https://ruby-doc.org/stdlib-3.0.0/libdoc/date/rdoc/DateTime.html#method-i-strftime[`strftime` formatting description
219
+ of the date]. (Space can be specified as `%_`.)
220
+ Month and day names and abbreviations, if requested in the formatting string, are internationalised
221
+ to the document language.
222
+
223
+ [source,asciidoctor]
224
+ ----
225
+ date[2012-02-02]
226
+ date[2012-02-02, %F]
227
+ date[2012-02-02, %A %d %B] # Thursday 2 February
228
+ date[2012-02-02T21:04:05, %F%_%l%_%p]
229
+ ----
230
+
231
+ == Other
232
+
211
233
212
234
=== Nesting of styles
213
235
You can’t perform that action at this time.
0 commit comments