-
Notifications
You must be signed in to change notification settings - Fork 28
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
More CommonMark compatibility, support for code fences and tests #13
base: master
Are you sure you want to change the base?
Commits on Jul 5, 2020
-
Add test suite based on MDTest and testdoc
Running `make test` will show the differences to the committed output, so that changes to smu's output become visible.
Configuration menu - View commit details
-
Copy full SHA for 832bb82 - Browse repository at this point
Copy the full SHA 832bb82View commit details -
Configuration menu - View commit details
-
Copy full SHA for 923433e - Browse repository at this point
Copy the full SHA 923433eView commit details -
Rename documentation to README.md
It shows up nicely n github and similar platforms this way.
Configuration menu - View commit details
-
Copy full SHA for 57da294 - Browse repository at this point
Copy the full SHA 57da294View commit details -
Configuration menu - View commit details
-
Copy full SHA for be1eb88 - Browse repository at this point
Copy the full SHA be1eb88View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4f90ebf - Browse repository at this point
Copy the full SHA 4f90ebfView commit details -
Otherwise github will render it as markdown which is a) not exactly the same rendering as smu b) not helpful for explaining the in/output in many cases
Configuration menu - View commit details
-
Copy full SHA for a4f4226 - Browse repository at this point
Copy the full SHA a4f4226View commit details -
Support empty lines in code fences
Previously the paragraph detector included the code fences in the paragraph up to the first empty line. This worked for trivial cases, but broke an many real world cases. I introduce regexes to to this project in this PR. Hopefully, this does not bring any meaningful downsides I don't know about.
Configuration menu - View commit details
-
Copy full SHA for f8100b0 - Browse repository at this point
Copy the full SHA f8100b0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6ecca24 - Browse repository at this point
Copy the full SHA 6ecca24View commit details -
Support backslashes in code spans and blocks
See change in `testdoc.html`
Configuration menu - View commit details
-
Copy full SHA for d1cc0bf - Browse repository at this point
Copy the full SHA d1cc0bfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 23f4307 - Browse repository at this point
Copy the full SHA 23f4307View commit details -
Configuration menu - View commit details
-
Copy full SHA for f9060cf - Browse repository at this point
Copy the full SHA f9060cfView commit details -
Describe the differences to the original smu as suggested by @avih.
Configuration menu - View commit details
-
Copy full SHA for 54ab60f - Browse repository at this point
Copy the full SHA 54ab60fView commit details -
Add rendered version of README
This provides a nice github pages website where users can read the rendered version of the README.
Configuration menu - View commit details
-
Copy full SHA for 2df9743 - Browse repository at this point
Copy the full SHA 2df9743View commit details -
Use list start number as <ol> start number
According to https://spec.commonmark.org/0.29/#start-number
Configuration menu - View commit details
-
Copy full SHA for 7c3f8ff - Browse repository at this point
Copy the full SHA 7c3f8ffView commit details -
Format more according to suckless style
* Tabs for indentation, white-space for alignment * Space after if, while, etc. * Sort imports
Configuration menu - View commit details
-
Copy full SHA for 0e782a2 - Browse repository at this point
Copy the full SHA 0e782a2View commit details -
Test HTML passthrough and fix line break
There was one line break too much in the output.
Configuration menu - View commit details
-
Copy full SHA for 7884019 - Browse repository at this point
Copy the full SHA 7884019View commit details -
Check for angular brackets later.
This is a preparation step for allowing `\<` escapes.
Configuration menu - View commit details
-
Copy full SHA for 7c2739c - Browse repository at this point
Copy the full SHA 7c2739cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 150c350 - Browse repository at this point
Copy the full SHA 150c350View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2d7fb93 - Browse repository at this point
Copy the full SHA 2d7fb93View commit details -
Configuration menu - View commit details
-
Copy full SHA for 13eb055 - Browse repository at this point
Copy the full SHA 13eb055View commit details -
Configuration menu - View commit details
-
Copy full SHA for ee6af60 - Browse repository at this point
Copy the full SHA ee6af60View commit details -
Reduce backslash quoting in hprint
Code blocks should print all backslashes. For now, backslash escapes of backticks are still allowed, but those should be removed in a next step.
Configuration menu - View commit details
-
Copy full SHA for 9cc298f - Browse repository at this point
Copy the full SHA 9cc298fView commit details -
No backslash escaping in code blocks
This is against commonmark: https://spec.commonmark.org/0.29/#example-303 Doing it in hprint was also bad, since that function is used in other places where no escaping is intended, too.
Configuration menu - View commit details
-
Copy full SHA for fddbdb2 - Browse repository at this point
Copy the full SHA fddbdb2View commit details -
Configuration menu - View commit details
-
Copy full SHA for a109634 - Browse repository at this point
Copy the full SHA a109634View commit details -
Configuration menu - View commit details
-
Copy full SHA for 62e6a10 - Browse repository at this point
Copy the full SHA 62e6a10View commit details -
No need to call hprint here, all HTML substitution is already done in `doreplace`.
Configuration menu - View commit details
-
Copy full SHA for 6a11028 - Browse repository at this point
Copy the full SHA 6a11028View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8b6eab9 - Browse repository at this point
Copy the full SHA 8b6eab9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 046e210 - Browse repository at this point
Copy the full SHA 046e210View commit details -
Configuration menu - View commit details
-
Copy full SHA for 92c7818 - Browse repository at this point
Copy the full SHA 92c7818View commit details -
Configuration menu - View commit details
-
Copy full SHA for c1a245d - Browse repository at this point
Copy the full SHA c1a245dView commit details -
Remove comparison to upstream smu
I'd like this branch to be merged upstream, so comparing the differences won't make any sense in the README, anymore.
Configuration menu - View commit details
-
Copy full SHA for ae85abb - Browse repository at this point
Copy the full SHA ae85abbView commit details