jmilldotdev / obsidian-wikipedia

Grabs information from Wikipedia for a topic and brings it into Obsidian notes
MIT License
95 stars 16 forks source link

Paragraph breaks are absent #4

Open JohnFNovak opened 2 years ago

JohnFNovak commented 2 years ago

When grabbing text from the Wikipedia article, paragraph breaks are entirely absent. From context they can usually be inferred because of a lack of a space between sentences.

eg:

In mathematics, a set is a collection of elements. The elements that make up a set can be any kind of mathematical objects: numbers, symbols, points in space, lines, other geometrical shapes, variables, or even other sets. The set with no element is the empty set; a set with a single element is a singleton. A set may have a finite number of elements or be an infinite set. Two sets are equal if they have precisely the same elements.Sets are ubiquitous in modern mathematics. Indeed, set theory, more specifically Zermelo–Fraenkel set theory, has been the standard way to provide rigorous foundations for all branches of mathematics since the first half of the 20th century.

vs

In mathematics, a set is a collection of elements. The elements that make up a set can be any kind of mathematical objects: numbers, symbols, points in space, lines, other geometrical shapes, variables, or even other sets. The set with no element is the empty set; a set with a single element is a singleton. A set may have a finite number of elements or be an infinite set. Two sets are equal if they have precisely the same elements. Sets are ubiquitous in modern mathematics. Indeed, set theory, more specifically Zermelo–Fraenkel set theory, has been the standard way to provide rigorous foundations for all branches of mathematics since the first half of the 20th century.

dummifiedme commented 2 years ago

Same here.

I noticed that if there are 3 or more paragraphs, the paragraphs except the first two are rendered correctly. eg. (as above)

In mathematics, a set is a collection of elements. The elements that make up a set can be any kind of mathematical objects: numbers, symbols, points in space, lines, other geometrical shapes, variables, or even other sets. The set with no element is the empty set; a set with a single element is a singleton.

A set may have a finite number of elements or be an infinite set. Two sets are equal if they have precisely the same elements.Sets are ubiquitous in modern mathematics. Indeed, set theory, more specifically Zermelo–Fraenkel set theory, has been the standard way to provide rigorous foundations for all branches of mathematics since the first half of the 20th century.

vs

In mathematics, a set is a collection of elements. The elements that make up a set can be any kind of mathematical objects: numbers, symbols, points in space, lines, other geometrical shapes, variables, or even other sets. The set with no element is the empty set; a set with a single element is a singleton.

A set may have a finite number of elements or be an infinite set. Two sets are equal if they have precisely the same elements.

Sets are ubiquitous in modern mathematics. Indeed, set theory, more specifically Zermelo–Fraenkel set theory, has been the standard way to provide rigorous foundations for all branches of mathematics since the first half of the 20th century.

jmilldotdev commented 1 year ago

this is coming directly from the wikipedia API

if someone wants to look into this go ahead