···11-// This file is part of Germ <https://github.com/gemrest/germ>.
22-// Copyright (C) 2022-2022 Fuwn <contact@fuwn.me>
33-//
44-// This program is free software: you can redistribute it and/or modify
55-// it under the terms of the GNU General Public License as published by
66-// the Free Software Foundation, version 3.
77-//
88-// This program is distributed in the hope that it will be useful, but
99-// WITHOUT ANY WARRANTY; without even the implied warranty of
1010-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1111-// General Public License for more details.
1212-//
1313-// You should have received a copy of the GNU General Public License
1414-// along with this program. If not, see <http://www.gnu.org/licenses/>.
1515-//
1616-// Copyright (C) 2022-2022 Fuwn <contact@fuwn.me>
1717-// SPDX-License-Identifier: GPL-3.0-only
1818-191//! This example demonstrates Germ's capabilities for parsing Gemtext into an
202//! abstract syntax tree.
213
-18
examples/ast_to_gemtext.rs
···11-// This file is part of Germ <https://github.com/gemrest/germ>.
22-// Copyright (C) 2022-2022 Fuwn <contact@fuwn.me>
33-//
44-// This program is free software: you can redistribute it and/or modify
55-// it under the terms of the GNU General Public License as published by
66-// the Free Software Foundation, version 3.
77-//
88-// This program is distributed in the hope that it will be useful, but
99-// WITHOUT ANY WARRANTY; without even the implied warranty of
1010-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1111-// General Public License for more details.
1212-//
1313-// You should have received a copy of the GNU General Public License
1414-// along with this program. If not, see <http://www.gnu.org/licenses/>.
1515-//
1616-// Copyright (C) 2022-2022 Fuwn <contact@fuwn.me>
1717-// SPDX-License-Identifier: GPL-3.0-only
1818-191//! This example converts Gemtext into an abstract syntax tree and then back
202//! into Gemtext, demonstrating both Germ's parsing and generation capabilities.
213
-18
examples/html.rs
···11-// This file is part of Germ <https://github.com/gemrest/germ>.
22-// Copyright (C) 2022-2022 Fuwn <contact@fuwn.me>
33-//
44-// This program is free software: you can redistribute it and/or modify
55-// it under the terms of the GNU General Public License as published by
66-// the Free Software Foundation, version 3.
77-//
88-// This program is distributed in the hope that it will be useful, but
99-// WITHOUT ANY WARRANTY; without even the implied warranty of
1010-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1111-// General Public License for more details.
1212-//
1313-// You should have received a copy of the GNU General Public License
1414-// along with this program. If not, see <http://www.gnu.org/licenses/>.
1515-//
1616-// Copyright (C) 2022-2022 Fuwn <contact@fuwn.me>
1717-// SPDX-License-Identifier: GPL-3.0-only
1818-191//! This example demonstrates Germ's capabilities for converting Gemtext to
202//! HTML.
213
-18
examples/markdown.rs
···11-// This file is part of Germ <https://github.com/gemrest/germ>.
22-// Copyright (C) 2022-2022 Fuwn <contact@fuwn.me>
33-//
44-// This program is free software: you can redistribute it and/or modify
55-// it under the terms of the GNU General Public License as published by
66-// the Free Software Foundation, version 3.
77-//
88-// This program is distributed in the hope that it will be useful, but
99-// WITHOUT ANY WARRANTY; without even the implied warranty of
1010-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1111-// General Public License for more details.
1212-//
1313-// You should have received a copy of the GNU General Public License
1414-// along with this program. If not, see <http://www.gnu.org/licenses/>.
1515-//
1616-// Copyright (C) 2022-2022 Fuwn <contact@fuwn.me>
1717-// SPDX-License-Identifier: GPL-3.0-only
1818-191//! This example demonstrates Germ's capabilities for converting Gemtext to
202//! Markdown.
213
-18
examples/meta.rs
···11-// This file is part of Germ <https://github.com/gemrest/germ>.
22-// Copyright (C) 2022-2022 Fuwn <contact@fuwn.me>
33-//
44-// This program is free software: you can redistribute it and/or modify
55-// it under the terms of the GNU General Public License as published by
66-// the Free Software Foundation, version 3.
77-//
88-// This program is distributed in the hope that it will be useful, but
99-// WITHOUT ANY WARRANTY; without even the implied warranty of
1010-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1111-// General Public License for more details.
1212-//
1313-// You should have received a copy of the GNU General Public License
1414-// along with this program. If not, see <http://www.gnu.org/licenses/>.
1515-//
1616-// Copyright (C) 2022-2022 Fuwn <contact@fuwn.me>
1717-// SPDX-License-Identifier: GPL-3.0-only
1818-191//! This example demonstrates Germ's capabilities for parsing Gemini meta
202//! sections.
213
-18
examples/request.rs
···11-// This file is part of Germ <https://github.com/gemrest/germ>.
22-// Copyright (C) 2022-2022 Fuwn <contact@fuwn.me>
33-//
44-// This program is free software: you can redistribute it and/or modify
55-// it under the terms of the GNU General Public License as published by
66-// the Free Software Foundation, version 3.
77-//
88-// This program is distributed in the hope that it will be useful, but
99-// WITHOUT ANY WARRANTY; without even the implied warranty of
1010-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1111-// General Public License for more details.
1212-//
1313-// You should have received a copy of the GNU General Public License
1414-// along with this program. If not, see <http://www.gnu.org/licenses/>.
1515-//
1616-// Copyright (C) 2022-2022 Fuwn <contact@fuwn.me>
1717-// SPDX-License-Identifier: GPL-3.0-only
1818-191//! This example demonstrates Germ's capabilities for performing a non-blocking
202//! request to a Gemini capsule.
213
-18
examples/request_blocking.rs
···11-// This file is part of Germ <https://github.com/gemrest/germ>.
22-// Copyright (C) 2022-2022 Fuwn <contact@fuwn.me>
33-//
44-// This program is free software: you can redistribute it and/or modify
55-// it under the terms of the GNU General Public License as published by
66-// the Free Software Foundation, version 3.
77-//
88-// This program is distributed in the hope that it will be useful, but
99-// WITHOUT ANY WARRANTY; without even the implied warranty of
1010-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1111-// General Public License for more details.
1212-//
1313-// You should have received a copy of the GNU General Public License
1414-// along with this program. If not, see <http://www.gnu.org/licenses/>.
1515-//
1616-// Copyright (C) 2022-2022 Fuwn <contact@fuwn.me>
1717-// SPDX-License-Identifier: GPL-3.0-only
1818-191//! This example demonstrates Germ's capabilities for performing a blocking
202//! request to a Gemini capsule.
213
-18
examples/request_blocking_to_gemtext_from_ast.rs
···11-// This file is part of Germ <https://github.com/gemrest/germ>.
22-// Copyright (C) 2022-2022 Fuwn <contact@fuwn.me>
33-//
44-// This program is free software: you can redistribute it and/or modify
55-// it under the terms of the GNU General Public License as published by
66-// the Free Software Foundation, version 3.
77-//
88-// This program is distributed in the hope that it will be useful, but
99-// WITHOUT ANY WARRANTY; without even the implied warranty of
1010-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1111-// General Public License for more details.
1212-//
1313-// You should have received a copy of the GNU General Public License
1414-// along with this program. If not, see <http://www.gnu.org/licenses/>.
1515-//
1616-// Copyright (C) 2022-2022 Fuwn <contact@fuwn.me>
1717-// SPDX-License-Identifier: GPL-3.0-only
1818-191//! This example demonstrates a chain of Germ's capabilities by fetching a
202//! Gemini capsule, parsing the response content into an abstract syntax tree,
213//! and converting the abstract syntax tree back to Gemtext, identical to the