Skip to content

Not working with goldmark 1.7.0 #2

@kpym

Description

@kpym

This extension looks to be broken with at least goldmark 1.7.0.

Here is an example of code and the resulting output (available in the golang playground).

package main

import (
	"log"
	"os"

	"github.com/mdigger/goldmark-attributes"
	"github.com/yuin/goldmark"
)

var example = `
# title {#main}

{#id .class1}
text
`

func main() {
	var md = goldmark.New(attributes.Enable)
	var source = []byte(example)
	err := md.Convert(source, os.Stdout)
	if err != nil {
		log.Fatal(err)
	}
}
<h1>title {#main}</h1>
<p>text</p>

This was reported in this related issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions