Skip to content

Respect newlines #6

@Andre-LA

Description

@Andre-LA

Currently tealdoc merges the text on the same lines

example:

--- Creates the DOCTYPE element
---
--- This is a second line!
--- @param doctype the doctype value, it's "html" by default
--- @return The DOCTYPE element
function Page.doctype(doctype?: string): Element
	return Element.new('!DOCTYPE', {doctype or 'html'})
end

output (``` modified to `):

## tlpages.page.doctype

`
function tlpages.page.doctype(doctype: string): Element
`

Creates the DOCTYPE element  This is a second line!
#### Parameters

- **`doctype`** (`string`) — the doctype value, it's "html" by default

#### Returns

1. (`Element`) — The DOCTYPE element

The same thing happens on html page.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions