mariotoffia / goasciidoc

Document your go code using asciidoc instead of godoc
Apache License 2.0
18 stars 0 forks source link

function are rendered using incorrect section delimiter #10

Closed mariotoffia closed 3 years ago

mariotoffia commented 3 years ago

When a plain function

func NewReportBuilder(
    json string,
    produce func(json string),
    rewritePath func(path string) string,
) *ReportBuilder {

    if nil == rewritePath {
        rewritePath = func(path string) string { return path }
    }

    return &ReportBuilder{
        json:        json,
        produce:     produce,
        rewritePath: rewritePath,
    }
}

is rendered. It will be rendered using ----- instead of ..... The above is rendered as:

== Functions

=== NewReportBuilder
[source, go]
----
func NewReportBuilder(
    json string,
    produce func(json string),
    rewritePath func(path string) string,
) *ReportBuilder
----

NewReportBuilder creates a new `ReportBuilder` with the provided _json_ as parameter.

If the _produce_ f...
mariotoffia commented 3 years ago

This is actually correct :D