Skip to content

Commit

Permalink
Add support for markdowns (#432)
Browse files Browse the repository at this point in the history
* First changes for markdown

* Most of the markdown work completed

* General cleanup and adding local audio link

* Changed to set milestones to convey markdown links during conversion

* Fix lint issues

* Comment out log messages

* File name change and allow reference of just chapter verse

* Don't need to check for markdowns in phrases anymore.  They were removed at build time

* Eliminate new line changes

* Moved reference parsing to build

* Fix lint issues

* Fix comment

* Minor changes on review

* Move code into milestone links so it has only one format
Create initial test code for milestone links

* Completed test for milestoneLinks

* Add tests for markdown conversion code

* Adjust for lint tests

* revert package-lock.json to what is in main

* Update Git action to use volta

* Update package-lock.json

* Change for code review.  Safari does not support ogg

* ignore ogg and webm links

* Fix lint issue
  • Loading branch information
davidmoore1 authored Jan 24, 2024
1 parent 828b8e2 commit 34c525a
Show file tree
Hide file tree
Showing 16 changed files with 1,870 additions and 221 deletions.
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

0 comments on commit 34c525a

Please sign in to comment.