git.iko.soy/typeable/pandoc
on master help sign in
Fixed some doc comments in data/pandoc.lua.
commit108e429c8843992e892a8e129baa7152d5abc5f9 authorJohn MacFarlane <jgm@berkeley.edu> dateThu 28 Dec 2017, 21:55 (9 years ago) parent6afdc89
1 file changed+10−10
data/pandoc.lua+10−10
data/pandoc.lua+10−10
@@ -246,7 +246,7 @@ M.BlockQuote = M.Block:create_constructor(
246246--- Creates a bullet (i.e. unordered) list.
247247-- @function BulletList
248248-- @tparam {{Block,...},...} content list of items
249−-- @treturn Block block quote element
249+-- @treturn Block bullet list element
250250M.BulletList = M.Block:create_constructor(
251251 "BulletList",
252252 function(content) return {c = content} end,
@@ -267,7 +267,7 @@ M.CodeBlock = M.Block:create_constructor(
267267--- Creates a definition list, containing terms and their explanation.
268268-- @function DefinitionList
269269-- @tparam {{{Inline,...},{Block,...}},...} content list of items
270−-- @treturn Block block quote element
270+-- @treturn Block definition list element
271271M.DefinitionList = M.Block:create_constructor(
272272 "DefinitionList",
273273 function(content) return {c = List:new(content)} end,
@@ -278,7 +278,7 @@ M.DefinitionList = M.Block:create_constructor(
278278-- @function Div
279279-- @tparam {Block,...} content block content
280280-- @tparam[opt] Attr attr element attributes
281−-- @treturn Block code block element
281+-- @treturn Block div element
282282M.Div = M.Block:create_constructor(
283283 "Div",
284284 function(content, attr)
@@ -287,7 +287,7 @@ M.Div = M.Block:create_constructor(
287287 {{"identifier", "classes", "attributes"}, "content"}
288288)
289289
290−--- Creates a block quote element.
290+--- Creates a header element.
291291-- @function Header
292292-- @tparam int level header level
293293-- @tparam {Inline,...} content inline content
@@ -312,7 +312,7 @@ M.HorizontalRule = M.Block:create_constructor(
312312--- Creates a line block element.
313313-- @function LineBlock
314314-- @tparam {{Inline,...},...} content inline content
315−-- @treturn Block block quote element
315+-- @treturn Block line block element
316316M.LineBlock = M.Block:create_constructor(
317317 "LineBlock",
318318 function(content) return {c = List:new(content)} end,
@@ -331,7 +331,7 @@ M.Null = M.Block:create_constructor(
331331-- @function OrderedList
332332-- @tparam {{Block,...},...} items list items
333333-- @param[opt] listAttributes list parameters
334−-- @treturn Block
334+-- @treturn Block ordered list element
335335M.OrderedList = M.Block:create_constructor(
336336 "OrderedList",
337337 function(items, listAttributes)
@@ -344,7 +344,7 @@ M.OrderedList = M.Block:create_constructor(
344344--- Creates a para element.
345345-- @function Para
346346-- @tparam {Inline,...} content inline content
347−-- @treturn Block block quote element
347+-- @treturn Block paragraph element
348348M.Para = M.Block:create_constructor(
349349 "Para",
350350 function(content) return {c = List:new(content)} end,
@@ -354,7 +354,7 @@ M.Para = M.Block:create_constructor(
354354--- Creates a plain element.
355355-- @function Plain
356356-- @tparam {Inline,...} content inline content
357−-- @treturn Block block quote element
357+-- @treturn Block plain element
358358M.Plain = M.Block:create_constructor(
359359 "Plain",
360360 function(content) return {c = List:new(content)} end,
@@ -365,7 +365,7 @@ M.Plain = M.Block:create_constructor(
365365-- @function RawBlock
366366-- @tparam string format format of content
367367-- @tparam string text string content
368−-- @treturn Block block quote element
368+-- @treturn Block raw block element
369369M.RawBlock = M.Block:create_constructor(
370370 "RawBlock",
371371 function(format, text) return {c = {format, text}} end,
@@ -379,7 +379,7 @@ M.RawBlock = M.Block:create_constructor(
379379-- @tparam {int,...} widths column widths
380380-- @tparam {Block,...} headers header row
381381-- @tparam {{Block,...}} rows table rows
382−-- @treturn Block block quote element
382+-- @treturn Block table element
383383M.Table = M.Block:create_constructor(
384384 "Table",
385385 function(caption, aligns, widths, headers, rows)