Eric Hellman
3f476b9100
Merge pull request #14 from davorpa/bugfix/8
...
[HOTFIX-11]: undefined `item` var -> `node`
2022-09-25 14:56:29 -04:00
David Ordás
17a39e9c97
fix: remarkTokenAST undefined `item` var -> `node`
2022-09-25 01:29:29 +02:00
Eric Hellman
c39d7a0866
Merge pull request #11 from davorpa/bugfix/8
...
[BUGFIX-8] Improve extraction of resource titles from Markdown links
2022-09-24 14:55:44 -04:00
David Ordás
f4b24bdefe
refactor: move `String.toString` -> `Objects.toString`
2022-09-20 17:55:32 +02:00
David Ordás
d9dacf2dd1
docs: fix jsdocs
2022-09-18 14:36:10 +02:00
David Ordás
af804ee329
register break and paragraph as valid AST types
2022-09-18 14:30:45 +02:00
David Ordás
42040f1800
cleanup + refactor + modularize
...
- cleanup: use `remarkTokenAST` to get the node template
- extract String functions to a new file under `lib/functions`
- move `stripParens`, `toString`, `wrapText` to it.
- Use `Strings.templater` to expand AST template with values
2022-09-18 09:20:59 +02:00
David Ordás
bdd243733a
revert swap url-title in json
2022-09-17 14:47:01 +02:00
David Ordás
8cab19ca3d
implements `getLinkTextFromLinkNodes`
...
Resolves #8
2022-09-17 14:44:17 +02:00
David Ordás
8f9bd348ea
refactor: move `stripParens` to next upper closure
2022-09-17 12:43:21 +02:00
David Ordás
db5f8992ef
extract algorithm to `getLinkTextFromLinkNodes` preserving current behaviour
2022-09-17 12:38:25 +02:00
David Ordás
74d932fd21
introduce wrapText function
2022-09-17 12:09:26 +02:00
David Ordás
ec488e910c
cleanup comments
2022-09-17 11:51:24 +02:00
Eric Hellman
dc53b8c803
Merge pull request #6 from davorpa/bugfix/5
...
[BUGFIX-5] Improve file media type extraction from directory name
2022-09-14 13:55:21 -04:00
Eric Hellman
4a38a8fe27
Merge pull request #7 from davorpa/patch-1
...
update git url
2022-09-14 09:18:59 -04:00
David Ordás
374690bd3a
Update git url
...
Repository url should match with the github upstream git url.
Maybe not changed since project was transfer to EbookFoundation
2022-09-14 00:15:29 +01:00
Eric Hellman
4042eda4ae
Merge pull request #4 from davorpa/bugfix/2
...
[BUGFIX-2] improve section name extraction from heading content
2022-09-13 12:09:01 -04:00
David Ordás
c91ac28dbf
improve `getMediaFromDirectory` function
...
- Sanatize input to be independent of OS.
- Extract right slug for both cases: if input parameter is file or is directory.
fixes #5
2022-09-13 15:29:48 +02:00
David Ordás
ee6f2f61bc
semantic function names
2022-09-13 15:09:52 +02:00
David Ordás
8ab1afc7f8
improve section name extraction from heading content
...
fixes #2
2022-09-13 10:53:19 +02:00
David Ordás
00fef31eb2
refactor the processing of headings to take into account the new function
2022-09-13 10:47:36 +02:00
David Ordás
10e8e5e507
extract code to function preserving behaviour
2022-09-13 10:32:18 +02:00
Eric Hellman
ce6be65bb4
Merge pull request #3 from davorpa/editorconfig-prettier-format
...
chore: reformat code with EditorConfig + Prettier
2022-09-12 09:36:01 -04:00
David Ordás
732592cde1
chore: reformat code with EditorConfig + Prettier
...
- Add `.editorconfig` format file with props matching current code format
- Reformat code with Prettier
2022-09-10 11:36:31 +02:00
Paul Kelly III
5eaf00bfd8
parses podcasts, courses, and more in addition to books
2022-04-21 20:42:10 -04:00
Brogan Clements
21dd110fe6
Run formatter and make correction to improve English listings
2022-03-31 23:56:02 -04:00
Brogan Clements
ecbf40aa4c
Ran a linter on the code
2021-12-03 15:11:25 -05:00
Brogan Clements
17699bb3b9
Add docstring to getLangFromFilename
2021-12-03 15:10:35 -05:00
Brogan Clements
8cdfb92e12
Add docstring to getMediaFromDirectory
2021-12-03 15:08:05 -05:00
Brogan Clements
b3d42a3677
Add docstring to parseMarkdown
2021-12-03 15:05:32 -05:00
Brogan Clements
c6c446c82d
Add docstring to getFilesFromDir
2021-12-03 14:02:03 -05:00
Brogan Clements
5f981e1940
Fix function definitions so all of them are defined in the same manner
2021-12-03 13:41:58 -05:00
Brogan Clements
a6055be88a
Add docstring for parseDirectory
2021-12-03 13:41:03 -05:00
Brogan Clements
6b10eea938
Add docstring for parseAll
2021-12-03 13:37:37 -05:00
Brogan Clements
9b0c90ba27
Remove timers
2021-12-03 13:12:57 -05:00
Brogan Clements
ee321f0ae8
Remove fpb.json
2021-12-03 13:10:45 -05:00
Paul Kelly III
6e169e3a93
AM I DONE????
2021-12-03 03:14:55 -05:00
Paul Kelly III
eb69148f2e
removed test print
2021-12-03 02:14:43 -05:00
Paul Kelly III
2745002f0c
should be able to flag in very weird cases (links present within parentheses)
2021-12-03 02:08:44 -05:00
Paul Kelly III
2e8f4921ce
i *think* this parses notes containing boldfaced text
2021-11-19 02:09:00 -05:00
Paul Kelly III
8b07ef46a2
realized the most recent commit was dogwater, my apologies
2021-11-12 03:40:31 -05:00
Paul Kelly III
b662a9e8f9
made the 'other stuff' parser a little less slow and added temporary otherStuff field to json
2021-11-12 03:33:00 -05:00
Paul Kelly III
a6d997bdc9
parses 'other stuff' (up to one set of notes marked by parentheses)
2021-11-12 03:16:05 -05:00
Paul Kelly III
142ff6f852
parses 'other stuff' (author, other links, access notes)
2021-11-12 03:04:47 -05:00
nrfq
ff3848aab2
reimplemented logging
2021-11-10 16:57:33 -05:00
Brogan Clements
f67c04142d
Add ability to take command line arguments
2021-11-05 16:54:42 -04:00
nrfq
3f56a72a7b
Merge branch 'main' of github.com:Senior-Design-2021-Ebook-Team/markdown-parser
2021-11-05 16:17:36 -04:00
nrfq
10e5d2a452
refactored code
2021-11-05 16:17:21 -04:00
github-actions[bot]
6c718fc3fd
update fpb.json
2021-11-05 20:11:44 +00:00
nrfq
6c2d80cfe7
fixed parsing errors
2021-11-05 15:31:51 -04:00