-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat: add syntax highlighting for verbatim blocks #70
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nfejzic
added a commit
that referenced
this pull request
Aug 4, 2022
commit 689dcb7 Author: Nadir Fejzic <nadirfejzo@gmail.com> Date: Thu Jun 30 14:13:36 2022 +0200 chore: revert "chore: update release-please" This reverts commit 25c1b34. commit 25c1b34 Author: Nadir Fejzić <nadirfejzo@gmail.com> Date: Thu Jun 30 14:09:38 2022 +0200 chore: update release-please commit 6fca1ea Author: Manuel Hatzl <hatzlmanuel@outlook.com> Date: Thu Apr 28 03:33:06 2022 +0200 refactor: simplify verbatim test commit 1f2e748 Merge: 3b2a5f6 6d026cd Author: Manuel Hatzl <49341624+mhatzl@users.noreply.github.com> Date: Thu Apr 28 03:30:35 2022 +0200 chore: merge pull request #70 from Unimarkup/syntax-highlight feat: add syntax highlighting for verbatim blocks Uses the syntect crate to highlight content in HTML. The crate also allows to create custom output formats. In the future, the content could be highlighted using Unimarkup elements instead. For this, text groups with attributes must be implemented first. commit 6d026cd Author: Manuel Hatzl <hatzlmanuel@outlook.com> Date: Thu Apr 28 03:18:48 2022 +0200 style: format code according to styleguide commit 2102a44 Author: Manuel Hatzl <hatzlmanuel@outlook.com> Date: Thu Apr 28 03:17:16 2022 +0200 feat: add syntax highlighting for verbatim blocks commit 3b2a5f6 Author: Manuel Hatzl <hatzlmanuel@outlook.com> Date: Thu Apr 28 01:11:59 2022 +0200 fix: remove file dependency from metadata The file must not exist on the plarform in order to create a metadata. This allows to use the core crate purely in memory. commit e92e9be Author: Manuel Hatzl <hatzlmanuel@outlook.com> Date: Thu Apr 28 00:16:22 2022 +0200 fix: handle empty content commit 921ad24 Merge: 1b90863 27aaae0 Author: Manuel Hatzl <49341624+mhatzl@users.noreply.github.com> Date: Thu Apr 28 00:00:15 2022 +0200 chore: merge pull request #67 from Unimarkup/inline Introduce inline functionality commit 27aaae0 Author: Manuel Hatzl <hatzlmanuel@outlook.com> Date: Wed Apr 27 23:57:38 2022 +0200 test: adapt file path of log test for actions commit b7b3db3 Author: Manuel Hatzl <hatzlmanuel@outlook.com> Date: Wed Apr 27 23:46:14 2022 +0200 style: format code according to styleguide commit 8272903 Author: Manuel Hatzl <hatzlmanuel@outlook.com> Date: Wed Apr 27 23:40:19 2022 +0200 test: set paths in log test to work in run and dbg commit ff93085 Author: Manuel Hatzl <hatzlmanuel@outlook.com> Date: Wed Apr 27 16:51:26 2022 +0200 fix(inline): correct open token cleanup commit 1e913c9 Author: Manuel Hatzl <hatzlmanuel@outlook.com> Date: Wed Apr 27 16:38:19 2022 +0200 fix(inline): correct verbatimOpen str representation commit 82b4fda Author: Manuel Hatzl <hatzlmanuel@outlook.com> Date: Tue Apr 26 02:21:24 2022 +0200 feat(inline): add inline token identifiers fix: change heading_level to u8 for easier conversions commit 20d9765 Author: Manuel Hatzl <hatzlmanuel@outlook.com> Date: Mon Apr 25 16:02:20 2022 +0200 fix: correct heading id generation of empty content commit 520f2bb Author: Manuel Hatzl <hatzlmanuel@outlook.com> Date: Sun Apr 24 17:31:32 2022 +0200 fix(inline): add validation against timing issues Fast lsp changes create timing issues, circumventing some grammar restrictions. commit af71710 Author: Manuel Hatzl <hatzlmanuel@outlook.com> Date: Sun Apr 24 15:56:09 2022 +0200 fix: change to `code` tag for inline verbatim commit e4e9104 Author: Manuel Hatzl <hatzlmanuel@outlook.com> Date: Sun Apr 24 15:28:05 2022 +0200 fix: update rendering of verbatim and text group commit 8761263 Author: Manuel Hatzl <hatzlmanuel@outlook.com> Date: Sun Apr 24 15:19:46 2022 +0200 feat(inline): add TextGroup element to ast commit 214dd5d Author: Manuel Hatzl <hatzlmanuel@outlook.com> Date: Sun Apr 24 14:36:58 2022 +0200 fix(inline): convert verbatim to nested inline Needed for correct tokenization using LSP. commit e8041dd Author: Manuel Hatzl <hatzlmanuel@outlook.com> Date: Sat Apr 23 22:10:43 2022 +0200 fix(inline): correct handling of invalid inner italic commit 7869d10 Author: Manuel Hatzl <hatzlmanuel@outlook.com> Date: Sat Apr 23 13:41:03 2022 +0200 fix(inline): correct nested italic before word commit 3d3566a Author: Manuel Hatzl <hatzlmanuel@outlook.com> Date: Wed Apr 20 16:22:55 2022 +0200 feat(inline): introduce plain newline token This helps to recreate the original Unimarkup file. Needed for LSP semantic highlighting. commit 138765c Author: Manuel Hatzl <hatzlmanuel@outlook.com> Date: Wed Apr 20 16:09:56 2022 +0200 feat: make um elements public Elements of a unimarkup document may now be accessed outside of the core crate. commit d4d28c1 Author: Manuel Hatzl <hatzlmanuel@outlook.com> Date: Wed Mar 23 23:26:58 2022 +0100 test(inline): add verbatim testcase for char escaping commit 128129a Author: Manuel Hatzl <hatzlmanuel@outlook.com> Date: Wed Mar 23 23:06:56 2022 +0100 fix(inline): correct ItalicClose without ItalicOpen commit 57fb41d Author: Manuel Hatzl <hatzlmanuel@outlook.com> Date: Wed Mar 23 12:46:00 2022 +0100 doc(inline): add documentation for the inline crate commit ba88b48 Author: Manuel Hatzl <hatzlmanuel@outlook.com> Date: Wed Mar 23 00:10:06 2022 +0100 feat: move to inline crate for inline formatting commit 0d538cd Author: Manuel Hatzl <hatzlmanuel@outlook.com> Date: Tue Mar 22 21:27:12 2022 +0100 feat(inline): add offset possibility for parsing This allows to set an offset for the start position of the first token. commit d894001 Author: Manuel Hatzl <hatzlmanuel@outlook.com> Date: Tue Mar 22 17:49:25 2022 +0100 refactor(inline): remove and restructure code Tests are moved out of source, since they got too long, bloating src files. commit 99231e7 Author: Manuel Hatzl <hatzlmanuel@outlook.com> Date: Mon Mar 21 14:07:05 2022 +0100 feat(inline): add arow and emoji substitution commit 665b330 Author: Manuel Hatzl <hatzlmanuel@outlook.com> Date: Mon Mar 21 13:09:27 2022 +0100 feat(inline): add newline handling commit 89b4fb1 Author: Manuel Hatzl <hatzlmanuel@outlook.com> Date: Mon Mar 21 12:51:45 2022 +0100 feat(inline): add escape handling to collect() commit 571aea4 Author: Manuel Hatzl <hatzlmanuel@outlook.com> Date: Mon Mar 21 12:07:48 2022 +0100 feat(inline): add basic collect() functionality collect() creates an AST out of the returned token list from tokenize(). commit a63d743 Author: Manuel Hatzl <hatzlmanuel@outlook.com> Date: Fri Mar 18 20:28:49 2022 +0100 feat(inline): add basic support for text groups commit d6ed958 Author: Manuel Hatzl <hatzlmanuel@outlook.com> Date: Tue Mar 15 00:22:32 2022 +0100 fix(inline): correct splitting of four asterisks commit 031dde8 Author: Manuel Hatzl <hatzlmanuel@outlook.com> Date: Mon Mar 14 18:04:16 2022 +0100 feat(inline): add verbatim formatting commit 8f9c123 Author: Manuel Hatzl <hatzlmanuel@outlook.com> Date: Mon Mar 14 17:22:27 2022 +0100 refactor(inline): split tokenize for nested tokenization commit 16eed17 Author: Manuel Hatzl <hatzlmanuel@outlook.com> Date: Mon Mar 14 15:08:01 2022 +0100 feat(inline): switch to grapheme iterator commit 0ccdff1 Author: Manuel Hatzl <hatzlmanuel@outlook.com> Date: Mon Mar 14 14:19:04 2022 +0100 test(inline): add open constraint test commit c2feda1 Author: Manuel Hatzl <hatzlmanuel@outlook.com> Date: Mon Mar 14 14:10:15 2022 +0100 fix(inline): enforce open constraint commit dc34282 Author: Manuel Hatzl <hatzlmanuel@outlook.com> Date: Mon Mar 14 13:42:26 2022 +0100 fix(inline): change 4 open asterisks to plain Instead of empty bold. commit 5dfe0fc Author: Manuel Hatzl <hatzlmanuel@outlook.com> Date: Mon Mar 14 12:12:43 2022 +0100 fix(inline): correct bold-italic edge cases Fixes combined bold-italic and empty bold cases. commit f675e97 Author: Manuel Hatzl <hatzlmanuel@outlook.com> Date: Mon Mar 14 02:09:37 2022 +0100 feat(inline): add escape functionality commit 6612553 Author: Manuel Hatzl <hatzlmanuel@outlook.com> Date: Mon Mar 14 01:32:18 2022 +0100 fix(inline): correct rightside combined bold-italic commit 1b3af04 Author: Manuel Hatzl <hatzlmanuel@outlook.com> Date: Mon Mar 14 01:14:00 2022 +0100 fix(inline): correct bold-italic ombined opening commit 8a17ff1 Author: Manuel Hatzl <hatzlmanuel@outlook.com> Date: Mon Mar 14 00:17:08 2022 +0100 fix(inline): correct bold closing commit 9d5edc8 Author: Manuel Hatzl <hatzlmanuel@outlook.com> Date: Mon Mar 14 00:04:13 2022 +0100 chore(inline): pass first formatting test commit 3999368 Author: Manuel Hatzl <hatzlmanuel@outlook.com> Date: Sat Mar 12 14:20:21 2022 +0100 chore: introduce base structure for inline handling commit 2a3b677 Author: Nadir Fejzic <nadirfejzo@gmail.com> Date: Thu Mar 10 02:29:51 2022 +0100 test: add basic tests for inline lexer commit 0c006ad Author: Nadir Fejzic <nadirfejzo@gmail.com> Date: Thu Mar 10 02:29:35 2022 +0100 feat: implement basic inline lexer commit 45a71cd Author: Nadir Fejzic <nadirfejzo@gmail.com> Date: Thu Mar 10 02:29:20 2022 +0100 feat: implement basic inline tokens commit 7f42ab0 Author: Nadir Fejzic <nadirfejzo@gmail.com> Date: Thu Mar 10 02:24:54 2022 +0100 chore: remove unused deps. from inline crate commit 54a8ef7 Author: Nadir Fejzic <nadirfejzo@gmail.com> Date: Sat Feb 26 23:26:36 2022 +0100 feat: implement basic lexer for plain, bold tokens
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This fixes #69