Fix entire link text not being parsed
This commit is contained in:
parent
07abee79ed
commit
9c8a738494
|
@ -56,12 +56,12 @@ defmodule Gemini do
|
|||
| {:list_item, String.t()}
|
||||
| {:quoted, String.t()}
|
||||
|
||||
@link_line_regex ~r/\s*([^\s]+)(?:\s+([^\s]+))?/
|
||||
@link_line_regex ~r/\s*([^\s]+)(?:\s+(.+))?/
|
||||
|
||||
@spec parse(String.t()) :: [line()]
|
||||
|
||||
def parse(doc) do
|
||||
{lines, _, _} =
|
||||
{lines, _} =
|
||||
doc
|
||||
|> String.split("\n")
|
||||
|> Enum.reduce({[], false}, fn line, {lines, in_preformatting} ->
|
||||
|
|
Loading…
Reference in New Issue