Commit graph

29 commits

Author SHA1 Message Date
arslee07
030c80da6a
POSIX compliance
According to the POSIX standard[0], the length() function only supports strings.
Although most common awk implementations support array length() as an
extension[1], it is better to make the program portable.

GNU Awk has a --posix flag that ensures that the script is POSIX compliant.
Running markdown.awk with this flag results in an error. This can be fixed by
getting the length of the array returned by split().

[0]: https://pubs.opengroup.org/onlinepubs/9699919799/utilities/awk.html
[1]: https://www.gnu.org/software/gawk/manual/html_node/Common-Extensions.html
2024-09-09 00:29:40 +01:00
dde0ebe599
Note the support of tables in readme 2024-09-09 00:29:37 +01:00
5ff9ee0235
Add support for tables 2024-09-09 00:29:35 +01:00
131ea53f4a
Add LICENSE file 2024-09-09 00:29:31 +01:00
8624cc6871
Automatically skip metadata headers 2024-09-09 00:29:28 +01:00
1cc0b977f1
Add a shebang to run markdown.awk as script 2024-09-09 00:29:24 +01:00
f36413def0
Add support for BSD awk 2024-09-09 00:29:21 +01:00
f00a95c6a3
Add support for better bold/italic formatting 2024-09-09 00:29:18 +01:00
d97f7044ed
Better support for horizontal rules 2024-09-09 00:29:14 +01:00
29281f3d61
Add support for images 2024-09-09 00:29:10 +01:00
0ebdbe72c4
Add support for horizontal rules 2024-09-09 00:29:07 +01:00
b54918c9b0
Lists within blockquotes and tabs in lists 2024-09-09 00:29:04 +01:00
2f982164ef
Add more edge cases to code and header handling 2024-09-09 00:29:01 +01:00
da65bb16f0
Implement links 2024-09-09 00:28:57 +01:00
dc1c7a3553
Fix off-by-one error in inline code block parsing 2024-09-09 00:28:54 +01:00
d96e204c3a
Add proper support for escape sequences 2024-09-09 00:28:50 +01:00
8171fc9374
Better support for bullet lists 2024-09-09 00:28:47 +01:00
a4c5c5435e
Add feature list to README.md 2024-09-09 00:28:44 +01:00
a2a7d97cb1
Add simple handling of html tags 2024-09-09 00:28:41 +01:00
ebd74283ee
Properly escape "<", ">" and "&" 2024-09-09 00:28:38 +01:00
5fadd96dfc
Test code blocks in blockquotes 2024-09-09 00:28:34 +01:00
e5291798cb
Remove unnecessary spaces in headers 2024-09-09 00:28:31 +01:00
eacefbbbe8
Add support for underlined headers 2024-09-09 00:28:28 +01:00
e15d8a56ef
Add support for space-indented code blocks 2024-09-09 00:28:25 +01:00
fe2635e6bf
Add basic support for blockquotes 2024-09-09 00:28:21 +01:00
dba2572a08
Add support for numbered lists 2024-09-09 00:28:17 +01:00
d38a5ccf1c
Make bullet lists work 2024-09-09 00:28:14 +01:00
632c454116
Second generation of the parser 2024-09-09 00:28:09 +01:00
9dc13bc2bc
Initial implementation 2024-09-09 00:28:04 +01:00