Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add metadata line to inline code spans #140

Merged
merged 1 commit into from
Nov 10, 2023

Conversation

wojtekmach
Copy link
Contributor

No description provided.

@@ -91,5 +91,11 @@ defmodule Acceptance.Ast.Lists.SpacedPendingTest do

assert ast_from_md(markdown) == ast
end

# remove after upgrading earmark_ast_dsl
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wojtekmach
Copy link
Contributor Author

Hi, thanks to something like this we'd be able to provide more useful warnings in ExDoc. See elixir-lang/ex_doc#1807.

I opted to just pass line information to what I need at the moment which is inline code spans. Let me know if that is acceptable or if we're adding this, we should add it to as many places as possible. Another potential idea is to opt-in to returning this information, the option could start as, say, include_line: :inline_code and later, if desired, become include_line: true. All that being said I think it is best to start small which I tried doing!

@RobertDober RobertDober merged commit c795d68 into RobertDober:master Nov 10, 2023
5 checks passed
@RobertDober
Copy link
Owner

That was a nice addendum, I'll release ASAP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants