Skip to content

Class references not working in method doc strings #3758

Closed
@TheFriendlyCoder

Description

@TheFriendlyCoder

I've been testing dartdoc in a small project I've been working on, and found some odd behaviour with regards to hyperlinks to classes within the same project not working properly ... but only within method doc strings. Property doc strings don't seem to be affected. Below is a sample snippet to show what I mean:

/// Docstring property reference [MyObject]
Future<MyObject> get myobj async {...}

/// Docstring method reference [MyObject]
Future<int> runOperation(MyObject obj) async {

In this example, the first Doctoring will generate a hyperlink to the MyObject class (ie: from the [MyObject] reference) but the exact same syntax in the second Doctoring will generate text that looks like inline code, similar to MyObject in markdown.

Metadata

Metadata

Assignees

Labels

P1A high priority bug; for example, a single project is unusable or has many test failurestype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions