8000 Rewrite POD parser and Markdown converter by Aequitosh · Pull Request #142 · bscan/PerlNavigator · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Rewrite POD parser and Markdown converter #142

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

Open
wants to merge 20 commits into
base: main
Choose a base branch
from
Open
8000 Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
ce505b0
server: pod: remove server-side HTML escaping
Aequitosh Jan 2, 2025
9233746
server: pod: improve regexes for inline format codes
Aequitosh Jan 2, 2025
f25a58b
server: pod: support bold italic / italic bold formatting codes
Aequitosh Jan 2, 2025
f381f43
server: pod: rewrite POD parser and markdown converter
Aequitosh Jan 2, 2025
e37d68f
server: pod: test: add unit tests for POD parsing & Markdown conversion
Aequitosh Jan 2, 2025
1eeba81
server: pod: allow omitting `=cut` if EOF is reached
Aequitosh Jan 2, 2025
e99e607
server: pod: fix `=for` command without any content causing error
Aequitosh Jan 2, 2025
95c3ba2
server: pod: allow `=begin` and `=over` blocks to be closed with `=cut`
Aequitosh Jan 2, 2025
361442f
server: pod: start markdown header levels at `3`
Aequitosh Jan 2, 2025
38f4bfb
server: pod: fix indentation being converted incorrectly
Aequitosh Jan 2, 2025
d78e521
server: pod: add utility functions for iterators
Aequitosh Jan 2, 2025
08887a8
server: pod: add support for alt. syntax for S, F, X formatting codes
Aequitosh Jan 2, 2025
4e5e878
server: pod: rework symbol lookup
Aequitosh Jan 2, 2025
b907278
server: pod: format pod document in general and after symbol lookup
Aequitosh Jan 2, 2025
fe7c1e7
server: pod: fix symbol lookup edge case regarding list items
Aequitosh Jan 2, 2025
782f89f
server: pod: remove error handling of RawPodParser
Aequitosh Jan 7, 2025
348c047
server: pod: remove error handling of PodProcessor
Aequitosh Jan 7, 2025
faf59f3
server: pod: use 2 instead of 8 spaces to represent tabs
Aequitosh Jan 7, 2025
1c27bd4
server: pod: use Perl syntax highlighting for verbatim paragraphs
Aequitosh Jan 7, 2025
f18a935
server: pod: fix no POD being returned if no symbol name was set
Aequitosh Jan 7, 2025
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
17 changes: 17 additions & 0 deletions server/jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import type { JestConfigWithTsJest } from 'ts-jest'

const jestConfig: JestConfigWithTsJest = {
// [...]
transform: {
// '^.+\\.[tj]sx?$' to process ts,js,tsx,jsx with `ts-jest`
// '^.+\\.m?[tj]sx?$' to process ts,js,tsx,jsx,mts,mjs,mtsx,mjsx with `ts-jest`
'^.+\\.tsx?$': [
'ts-jest',
{
// ts-jest configuration goes here
},
],
},
}

export default jestConfig;
12 changes: 10 additions & 2 deletions server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,20 @@
"vscode-textmate": "^9.0.0",
"vscode-oniguruma": "^2.0.1"
},
"scripts": {},
"scripts": {
"test": "jest"
},
"main": "./src/dist/serverMain.js",
"bin": {
"perlnavigator": "./bin/perlnavigator"
},
"devDependencies": {},
"devDependencies": {
"@types/jest": "^29.5.12",
"jest": "^29.7.0",
"ts-jest": "^29.2.4",
"ts-node": "^10.9.2",
"typescript": "^5.5.4"
},
"keywords": [
"perl",
"lsp",
Expand Down
Loading
0