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

separate sentences onto individual lines #6

Closed
poldrack opened this issue Oct 2, 2018 · 3 comments
Closed

separate sentences onto individual lines #6

poldrack opened this issue Oct 2, 2018 · 3 comments

Comments

@poldrack
Copy link
Owner

poldrack commented Oct 2, 2018

would be useful to separate sentences to individual lines for purposes of diffing

@poldrack
Copy link
Owner Author

this is a bad idea for markdown

@dankessler
Copy link
Contributor

I know this is closed, but I'm curious why "one sentence per line" is a bad idea for markdown. This is the approach I take with LaTeX and markdown documents (precisely for diffing and better version control), but I wonder if there's some precipice that I'm unknowingly approaching (at least in markdown) by doing this.

As far as I know, separating sentences on individual lines should be safe in markdown, but I did a bit of googling around to see if there was something obvious I was missing. I came across this site, which seems dedicated to advocating for "semantic line breaks" and it lists Markdown as a language which supports semantic line breaks. I reviewed the Markdown syntax guide, and its treatment of paragraphs and line breaks suggests to me that things will only get messy if you end a line with two or more spaces, in which case it will be treated like a line break; otherwise consecutive lines of text will be rendered like a paragraph, no matter how many lines the content spans. However, experiments in this "issues" editor suggest that github flavored markdown is a bit more aggressive, and preserves all the line breaks, and perhaps whatever you're using to render the book is behaving more like this.

If you change your mind, I use this approach in emacs to do semi-automated conversion of documents, typically when I've inherited them from someone else.

@poldrack
Copy link
Owner Author

poldrack commented Nov 21, 2018 via email

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

No branches or pull requests

2 participants