Skip to content

Consider Modifying Inline to Allow for Arbitrary Order of Arguments #155

@jrg94

Description

@jrg94

The way Inline works right now, there is a clear hierarchy or precedence of attributes. For example, images and links take precedence over styling. As stated in the docs:

Due to this design, some forms of inline text are not possible.

I am curious if there is a way to allow order of arguments to matter for precedence or if this would even be a good idea. I know inspect library lets you do some introspection: https://docs.python.org/3.8/library/inspect.html#introspecting-callables-with-the-signature-object. I haven't looked too deeply, so this may not even be possible. And I certainly do not want to shift to a kwargs solution, as I prefer having keywords that are picked up in IDEs and static analysis tools.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions