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

Add support for markdowns #432

Merged
merged 23 commits into from
Jan 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
ff5837b
First changes for markdown
davidmoore1 Jan 10, 2024
670da90
Most of the markdown work completed
davidmoore1 Jan 12, 2024
09a0d9d
General cleanup and adding local audio link
davidmoore1 Jan 12, 2024
9280230
Changed to set milestones to convey markdown links during conversion
davidmoore1 Jan 17, 2024
6ea0e81
Fix lint issues
davidmoore1 Jan 17, 2024
9306510
Comment out log messages
davidmoore1 Jan 17, 2024
da2e45f
File name change and allow reference of just chapter verse
davidmoore1 Jan 18, 2024
a0ef9e1
Don't need to check for markdowns in phrases anymore. They were remo…
davidmoore1 Jan 19, 2024
97c2300
Eliminate new line changes
davidmoore1 Jan 19, 2024
ee752ef
Moved reference parsing to build
davidmoore1 Jan 19, 2024
597079d
Fix lint issues
davidmoore1 Jan 19, 2024
798cf07
Fix comment
davidmoore1 Jan 19, 2024
2076c1d
Minor changes on review
davidmoore1 Jan 19, 2024
c0847de
Move code into milestone links so it has only one format
davidmoore1 Jan 22, 2024
8687557
Completed test for milestoneLinks
davidmoore1 Jan 22, 2024
7c1ae52
Add tests for markdown conversion code
davidmoore1 Jan 23, 2024
8e135cc
Adjust for lint tests
davidmoore1 Jan 23, 2024
1189172
revert package-lock.json to what is in main
davidmoore1 Jan 23, 2024
9e2bacc
Update Git action to use volta
davidmoore1 Jan 23, 2024
3a76f3e
Update package-lock.json
davidmoore1 Jan 23, 2024
45c21f2
Change for code review. Safari does not support ogg
davidmoore1 Jan 23, 2024
3e13f57
ignore ogg and webm links
davidmoore1 Jan 24, 2024
f91854d
Fix lint issue
davidmoore1 Jan 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ jobs:
steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v3
with:
node-version: '16.17.0'
- uses: volta-cli/action@v4

- name: NPM Install
run: |
Expand Down
20 changes: 10 additions & 10 deletions example_data/books/C01/01GENengWEBbd.usfm
Original file line number Diff line number Diff line change
Expand Up @@ -89,22 +89,22 @@
\p
\v 6 When the woman saw that the tree was good for food, and that it was a delight to the eyes, and that the tree was to be desired to make one wise, she took some of its fruit, and ate; and she gave some to her husband with her, and he ate it, too.
\v 7 Their eyes were opened, and they both knew that they were naked. They sewed fig leaves together, and made coverings for themselves.
\v 8 They heard Yahweh God’s voice walking in the garden in the cool of the day, and the man and his wife hid themselves from the presence of Yahweh God among the trees of the garden.
\v 8 They heard Yahweh God’s voice walking in the garden in the cool of the day, and the man and his wife hid themselves from the presence of Yahweh God among the trees of the garden. [Just chapter verse](7.1)
\p
\v 9 Yahweh God called to the man, and said to him, “Where are you?”
\v 9 Yahweh God called to the man, and said to him, “Where are you?” [No BC No Verse Link](MAT.5)
\p
\v 10 The man said, “I heard your voice in the garden, and I was afraid, because I was naked; and I hid myself.”
\v 10 The man said, “I heard your voice in the garden, and I was afraid, because I was naked; and I hid myself.” [No BC Link](MAT.5.1)
\p
\v 11 God said, “Who told you that you were naked? Have you eaten from the tree that I commanded you not to eat from?”
\v 11 God said, “Who told you that you were naked? Have you eaten from the tree that I commanded you not to eat from?” [Beatitudes](C01.MAT.5.1)
\p
\v 12 The man said, “The woman whom you gave to be with me, she gave me fruit from the tree, and I ate it.”
\v 12 The man said, “The woman whom you gave to be with me, she gave me fruit from the tree, and I ate it.” [Audio](audioclip.mp3)
\p
\v 13 Yahweh God said to the woman, “What have you done?”
\p The woman said, “The serpent deceived me, and I ate.”
\v 13 Yahweh God said to the woman, “What have you done?” [Empty Markdown]
\p The woman said, “The serpent deceived me, and I ate.” [Web Link](https://www.sil.org/)
\p
\v 14 Yahweh God said to the serpent,
\q1 “Because you have done this,
\q2 you are cursed above all livestock,
\v 14 Yahweh God said to the serpent, ![The serpent](Serpent.png)
\q1 “Because you have done this, [TEL](tel:6145551212)
\q2 you are cursed above all livestock, [EMAIL DAVID](mailto:[email protected])
\q2 and above every animal of the field.
\q1 You shall go on your belly
\q2 and you shall eat dust all the days of your life.
Expand Down
Binary file added example_data/clips/audioclip.mp3
Binary file not shown.
Binary file added example_data/illustrations/Serpent.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading